From b0021c10835573ee881e067e9550a1625834177d Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 16 Mar 2014 17:14:49 +0100 Subject: [PATCH] Bump CMake version requirement to 2.8.9 Time to modernize our build system, making use of all the fancy features that have crept into CMake in the past few years. While 2.8.9 is by far not the latest version, it is rather widely deployed in distros at this time and thus seems to be a reasonable choice as a minimum requirement. --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42bacd81..a2205228 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,19 +25,13 @@ # NOTE: You should remove CMakeCache.txt if you plan to change any of these values! +cmake_minimum_required(VERSION 2.8.9) project(QuasselIRC) include(CheckFunctionExists) include(CheckIncludeFile) 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) - cmake_policy(SET CMP0003 NEW) -endif(COMMAND cmake_policy) - # Use our own (well, and KDE's) version of some modules # In particular cmake's own FindQt4 and FindOpenSSL are quite buggy set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) -- 2.20.1