summaryrefslogtreecommitdiffstats
path: root/cmake/deps.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/deps.cmake')
-rw-r--r--cmake/deps.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/deps.cmake b/cmake/deps.cmake
index c3936af..76f5296 100644
--- a/cmake/deps.cmake
+++ b/cmake/deps.cmake
@@ -42,6 +42,17 @@ endif(USE_LIBSODIUM)
set_property(GLOBAL PROPERTY NACL_REQUIRED FALSE)
+if(USE_OPENSSL)
+ pkg_check_modules(OPENSSL_CRYPTO REQUIRED libcrypto)
+else(USE_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)
+
+
if(WITH_CAPABILITIES)
find_package(CAP REQUIRED)
else(WITH_CAPABILITIES)