X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=ee39a485cae2e2fc7b7be5ed3689fced6320b48e;hp=e1b2427cb95af5d028b7fd939c4f795aa1dbcc5c;hb=166da47745dc4e776ef4d77674ea5245da141d8b;hpb=d226ad424a16011a5751e80b853de7bc0b2e0674;ds=sidebyside diff --git a/CMakeLists.txt b/CMakeLists.txt index e1b2427c..ee39a485 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,7 @@ if(SPUTDEV) add_definitions(-DSPUTDEV) endif(SPUTDEV) +# Set up OpenSSL find_package(OpenSSL) # Select a Qt installation here, if you don't want to use system Qt @@ -113,9 +114,9 @@ endif(DEFINED STATIC) if(STATICWIN AND WIN32) link_libraries(imm32 winmm) # missing by default :/ - if(OPENSSL_FOUND) - link_libraries(libeay32MD ssleay32MD) - endif(OPENSSL_FOUND) + if(OPENSSL_FOUND) + link_libraries(${OPENSSL_LIBRARIES} libeay32MD) + endif(OPENSSL_FOUND) endif(STATICWIN AND WIN32) if(WIN32)