summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/check_reqs.cmake4
-rw-r--r--cmake/config.cmake4
-rw-r--r--cmake/deps.cmake12
3 files changed, 10 insertions, 10 deletions
diff --git a/cmake/check_reqs.cmake b/cmake/check_reqs.cmake
index 8f41285..58fb05d 100644
--- a/cmake/check_reqs.cmake
+++ b/cmake/check_reqs.cmake
@@ -6,9 +6,9 @@ if(${nacl_required})
message(FATAL_ERROR "NaCl is not available, but a selected module needs it")
endif()
- if(USE_LIBSODIUM)
+ if(ENABLE_LIBSODIUM)
set(HAVE_LIBSODIUM TRUE)
- endif(USE_LIBSODIUM)
+ endif(ENABLE_LIBSODIUM)
else(${nacl_required})
set(NACL_INCLUDE_DIRS "")
set(NACL_CFLAGS_OTHER "")
diff --git a/cmake/config.cmake b/cmake/config.cmake
index 96b39bc..a678d4e 100644
--- a/cmake/config.cmake
+++ b/cmake/config.cmake
@@ -18,8 +18,8 @@ endif()
set(WITH_CAPABILITIES ${LINUX} CACHE BOOL "Include support for POSIX capabilities")
-set(USE_LIBSODIUM FALSE CACHE BOOL "Use libsodium instead of NaCl")
-set(USE_OPENSSL FALSE CACHE BOOL "Use OpenSSL")
+set(ENABLE_LIBSODIUM FALSE CACHE BOOL "Use libsodium instead of NaCl")
+set(ENABLE_OPENSSL FALSE CACHE BOOL "Enable crypto implementations using OpenSSL")
set(WITH_CMDLINE_USER TRUE CACHE BOOL "Include support for setting user/group related options on the command line")
set(WITH_CMDLINE_LOGGING TRUE CACHE BOOL "Include support for setting logging related options on the command line")
diff --git a/cmake/deps.cmake b/cmake/deps.cmake
index 76f5296..d9dff1e 100644
--- a/cmake/deps.cmake
+++ b/cmake/deps.cmake
@@ -16,7 +16,7 @@ set(NACL_LIBRARY_DIRS "")
set(NACL_LIBRARIES "")
set(NACL_LDFLAGS_OTHER "")
-if(USE_LIBSODIUM)
+if(ENABLE_LIBSODIUM)
pkg_check_modules(SODIUM libsodium)
if(SODIUM_FOUND)
@@ -30,27 +30,27 @@ if(USE_LIBSODIUM)
set(NACL_LIBRARIES "${SODIUM_LIBRARIES}")
set(NACL_LDFLAGS_OTHER "${SODIUM_LDFLAGS_OTHER}")
endif(SODIUM_FOUND)
-else(USE_LIBSODIUM)
+else(ENABLE_LIBSODIUM)
find_package(NaCl)
if(NACL_FOUND)
set(NACL_INCLUDE_DIRS "${NACL_INCLUDE_DIR}")
set(NACL_LIBRARIES "${NACL_LIBRARY}")
endif(NACL_FOUND)
-endif(USE_LIBSODIUM)
+endif(ENABLE_LIBSODIUM)
set_property(GLOBAL PROPERTY NACL_REQUIRED FALSE)
-if(USE_OPENSSL)
+if(ENABLE_OPENSSL)
pkg_check_modules(OPENSSL_CRYPTO REQUIRED libcrypto)
-else(USE_OPENSSL)
+else(ENABLE_OPENSSL)
set(OPENSSL_CRYPTO_INCLUDE_DIRS "")
set(OPENSSL_CRYPTO_CFLAGS_OTHER "")
set(OPENSSL_CRYPTO_LIBRARY_DIRS "")
set(OPENSSL_CRYPTO_LIBRARIES "")
set(OPENSSL_CRYPTO_LDFLAGS_OTHER "")
-endif(USE_OPENSSL)
+endif(ENABLE_OPENSSL)
if(WITH_CAPABILITIES)