cmake: Include OpenSSL libraries in static linking
This commit is contained in:
6
external/unbound/CMakeLists.txt
vendored
6
external/unbound/CMakeLists.txt
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user