From f8dcbdf74b286506cc19b6efcad8c7d128f8fc80 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 4a6cfa89..0f8a87ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -290,9 +290,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