aboutsummaryrefslogtreecommitdiff
path: root/external/unbound
diff options
context:
space:
mode:
authorwarptangent <warptangent@tutanota.com>2016-02-12 16:52:52 -0800
committerwarptangent <warptangent@tutanota.com>2016-02-12 16:54:14 -0800
commit9832d18dcaf664750758f5f0afb73097cfdfa9c8 (patch)
tree49d32c8a41428b4ef1f8f1789c0fb17be9cb7e61 /external/unbound
parentcmake: Remove unused variable (diff)
downloadmonero-9832d18dcaf664750758f5f0afb73097cfdfa9c8.tar.xz
cmake: Include OpenSSL libraries in static linking
Diffstat (limited to 'external/unbound')
-rw-r--r--external/unbound/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/external/unbound/CMakeLists.txt b/external/unbound/CMakeLists.txt
index 839b21c70..0dd5d6bc4 100644
--- a/external/unbound/CMakeLists.txt
+++ b/external/unbound/CMakeLists.txt
@@ -40,6 +40,12 @@ if (APPLE)
endif()
find_package(OpenSSL REQUIRED)
+if(STATIC)
+ if(UNIX)
+ set(OPENSSL_LIBRARIES "${OPENSSL_LIBRARIES};${CMAKE_DL_LIBS}")
+ endif()
+endif()
+
find_package(Threads)
include(configure_checks.cmake)