X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=565240139959980d8d170b8e7266db83daa1c740;hp=16dac306a80a124028e9b079ec9e6fd07254245d;hb=refs%2Fheads%2F0.2;hpb=6ef6a889fa6a8b332aa8a052d9a173778425f963 diff --git a/CMakeLists.txt b/CMakeLists.txt index 16dac306..56524013 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,9 +14,9 @@ project(QuasselIRC) # Target scopes don't work in older versions cmake_minimum_required(VERSION 2.4.7 FATAL_ERROR) -# This would suppress annoying warnings on cmake-2.6, but we can't use it -# with 2.4, so... DUH! -# cmake_policy(SET CMP0003 OLD) # suppress linker warnings +if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 OLD) # suppress linker warnings +endif(COMMAND cmake_policy) # Use our own (well, KDE's) version of some modules # In particular cmake's FindQt4 and FindOpenSSL are quite buggy @@ -69,6 +69,9 @@ endif(SPUTDEV) # Set up OpenSSL find_package(OpenSSL) +if(NOT OPENSSL_FOUND) + add_definitions(-DQT_NO_OPENSSL) +endif(NOT OPENSSL_FOUND) # Select a Qt installation here, if you don't want to use system Qt if(QT)