From: Manuel Nickschas Date: Wed, 13 Jan 2010 22:12:27 +0000 (+0100) Subject: Fix static linking of OpenSSL on Win32 X-Git-Tag: 0.5.2~6 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=fa0bc5d28d30e25eddba5b70166ae3b335ab2d4b;p=quassel.git Fix static linking of OpenSSL on Win32 --- 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)