cmake: Include OpenSSL libraries in static linking

This commit is contained in:
warptangent
2016-02-12 16:52:52 -08:00
parent c2f2437586
commit 9832d18dca
3 changed files with 11 additions and 6 deletions

View File

@@ -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)