From fa0bc5d28d30e25eddba5b70166ae3b335ab2d4b Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Wed, 13 Jan 2010 23:12:27 +0100 Subject: [PATCH] Fix static linking of OpenSSL on Win32 --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ef379a2..1cd9ece9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -291,9 +291,10 @@ endif(STATIC AND CMAKE_COMPILER_IS_GNUCXX) if(WIN32) link_libraries(imm32 winmm dbghelp Secur32) # missing by default :/ - if(HAVE_SSL) + if(HAVE_SSL AND STATIC) + find_package(OpenSSL REQUIRED) link_libraries(${OPENSSL_LIBRARIES} libeay32MD) - endif(HAVE_SSL) + endif(HAVE_SSL AND STATIC) endif(WIN32) if(INDICATEQT_FOUND) -- 2.20.1