diff options
author | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2019-03-11 15:56:06 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-04-01 08:38:17 +0200 |
commit | d6d9b56bb9c96eb15329b5530b41e742cef04dde (patch) | |
tree | 2c09be1498c474218af6624f2278ab992a6b3bbf /DefineOptions.cmake | |
parent | 68385a2e983a30c3013663e4cc934a67a9878ea5 (diff) | |
download | libssh-d6d9b56bb9c96eb15329b5530b41e742cef04dde.tar.gz libssh-d6d9b56bb9c96eb15329b5530b41e742cef04dde.tar.xz libssh-d6d9b56bb9c96eb15329b5530b41e742cef04dde.zip |
cmake,options: Allow to set global bind config file
This allows the global bind configuration file path to be set in
configuration time by defining the GLOBAL_BIND_CONFIG when calling
cmake. If no value is defined, the default path is set as
"/etc/ssh/libssh_server_config".
usage example:
$ cmake -DGLOBAL_BIND_CONFIG=/etc/my/custom/path ..
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'DefineOptions.cmake')
-rw-r--r-- | DefineOptions.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/DefineOptions.cmake b/DefineOptions.cmake index 84ccd96d..5af58977 100644 --- a/DefineOptions.cmake +++ b/DefineOptions.cmake @@ -49,3 +49,7 @@ endif (WITH_NACL) if (WITH_ABI_BREAK) set(WITH_SYMBOL_VERSIONING ON) endif (WITH_ABI_BREAK) + +if (NOT GLOBAL_BIND_CONFIG) + set(GLOBAL_BIND_CONFIG "/etc/ssh/libssh_server_config") +endif (NOT GLOBAL_BIND_CONFIG) |