From: Manuel Nickschas Date: Tue, 10 Jun 2008 15:31:03 +0000 (+0200) Subject: Use the provided CMake variables rather than hardcoding names for the SSL libs X-Git-Tag: 0.3.0~371^2~6 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=be8488a1fe20fd121d9c54dc52b24966a3432740 Use the provided CMake variables rather than hardcoding names for the SSL libs --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e1b2427c..e5a6f44f 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}) # not sure if we need it in here + endif(OPENSSL_FOUND) endif(STATICWIN AND WIN32) if(WIN32) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 294fb4c9..37110f3e 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -50,6 +50,8 @@ set(HEADERS if(OPENSSL_FOUND AND NOT QT_DEFINITIONS MATCHES "-DQT_NO_OPENSSL") set(SOURCES ${SOURCES} sslserver.cpp) set(MOC_HDRS ${MOC_HDRS} sslserver.h) + link_libraries(${OPENSSL_LIBRARIES}) + include_directories(${OPENSSL_INCLUDE_DIR}) endif(OPENSSL_FOUND AND NOT QT_DEFINITIONS MATCHES "-DQT_NO_OPENSSL") QT4_WRAP_CPP(MOC ${MOC_HDRS})