X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=CMakeLists.txt;h=ac51b164b4452a3eeb3d3167afee2e07588b1fbd;hb=76a761ae992691f4ed8fee2a65b2a8fcfa80fef5;hp=0ed071a8284fcc0ec578b94711057eea004b51aa;hpb=b3f7afd004184dfbf23f4fe9b6880a50f7a4faf1;p=quassel.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ed071a8..ac51b164 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,10 +34,10 @@ include(CheckCXXCompilerFlag) # For building against Qt5, we check for an even newer cmake version below! cmake_minimum_required(VERSION 2.8.1 FATAL_ERROR) -if(COMMAND cmake_policy) +if(CMAKE_MAJOR_VERSION GREATER 2) cmake_policy(SET CMP0026 OLD) cmake_policy(SET CMP0043 OLD) -endif(COMMAND cmake_policy) +endif() # Use our own (well, and KDE's) version of some modules # In particular cmake's own FindQt4 and FindOpenSSL are quite buggy