X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=0f8a87ae862d8a4dd3c42193cf29fd411f230511;hp=4a6cfa89b7c76fb3caa464c645d969dc54a295f0;hb=f8dcbdf74b286506cc19b6efcad8c7d128f8fc80;hpb=311aa7358cde02f4e0dd4a95f5e6a6c958cd76cf 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)