From 9832d18dcaf664750758f5f0afb73097cfdfa9c8 Mon Sep 17 00:00:00 2001 From: warptangent Date: Fri, 12 Feb 2016 16:52:52 -0800 Subject: cmake: Include OpenSSL libraries in static linking --- external/unbound/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'external/unbound') 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) -- cgit v1.2.3