X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=156b84e49745c1860a241cb227ef32ab32d554cb;hp=fed2b7791e8305128cca4eed86266f35adfddef8;hb=0ef2797c935b8cba29b667da150c8ab9117b0647;hpb=4d01cd257e2bce4434f768b37c19f2701c5dd339 diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index fed2b779..156b84e4 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -40,10 +40,15 @@ set(HEADERS sessionthread.h userinputhandler.h) -if(NOT ${QT_DEFINITIONS} MATCHES "-DQT_NO_OPENSSL") +# QT_DEFINITIONS actually does not work, stuff gets included always. +# Funny enough that does not seem to be harmful, but we should still find a way to figure out +# if we have openssl in Qt... +find_package(OpenSSL) + +if(OPENSSL_FOUND AND NOT ${QT_DEFINITIONS} MATCHES "-DQT_NO_OPENSSL") set(SOURCES ${SOURCES} sslserver.cpp) set(HEADERS ${HEADERS} sslserver.h) -endif(NOT ${QT_DEFINITIONS} MATCHES "-DQT_NO_OPENSSL") +endif(OPENSSL_FOUND AND NOT ${QT_DEFINITIONS} MATCHES "-DQT_NO_OPENSSL") QT4_WRAP_CPP(MOC ${HEADERS})