cmake: Bump minimum required CMake version to 3.5
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 25 Jul 2018 22:47:13 +0000 (00:47 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
This is the version shipped with Ubuntu 16.04 "Xenial", so
use this as a minimum requirement.

CMakeLists.txt
INSTALL

index aa835a5..542d362 100644 (file)
@@ -6,6 +6,8 @@
 # General setup
 #####################################################################
 
+cmake_minimum_required(VERSION 3.5)
+
 # Versions
 set(QUASSEL_MAJOR  0)
 set(QUASSEL_MINOR 13)
@@ -144,12 +146,6 @@ option(WITH_LDAP "Enable LDAP authentication support if present on system" ON)
 # Setup CMake
 #####################################################################
 
-if (WITH_KDE)
-    cmake_minimum_required(VERSION 2.8.12)
-else()
-    cmake_minimum_required(VERSION 2.8.9)
-endif()
-
 # Setting COMPILE_DEFINITIONS_<CONFIG> is deprecated since CMake 3.0 in favor of generator expressions.
 # These have existed since CMake 2.8.10; until we depend on that, we have to explicitly enable the old policy.
 if (POLICY CMP0043)
diff --git a/INSTALL b/INSTALL
index 17b72d5..03abd3e 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -32,7 +32,7 @@ fairly recent compiler:
 - Visual C++ 2015 (available for Windows™), or
 - any other compiler with decent C++11 support
 
-Furthermore, CMake 2.8.9 or later is required (2.8.12 for KDE Frameworks).
+Furthermore, CMake 3.5 or later is required.
 
 As Quassel is a Qt application, you need the Qt SDK, version 5.5 or higher.