X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=1cd9ece90aa4edab52d01afab3c41e65abfcc892;hp=7ef379a209952b2b5949cc192b785a9f545e375c;hb=fa0bc5d28d30e25eddba5b70166ae3b335ab2d4b;hpb=ab66db150c3eadf225fab28af591ba74093950f6 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)