changeset 1560:9084c6f94a0a

Require cmake 2.8.12 (from 2013) since current cmake warns about older versions. Remove policy check for CMP0022. The variable INTERFACE_LINK_LIBRARIES it affects is not used.
author Thomas Klausner <wiz@gatalith.at>
date Wed, 16 Jun 2021 18:05:27 +0200
parents 2dbc816d48f4
children 699c3fb0c57b
files CMakeLists.txt libfdcore/CMakeLists.txt libfdproto/CMakeLists.txt
diffstat 3 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Tue Oct 27 10:50:04 2020 +0100
+++ b/CMakeLists.txt	Wed Jun 16 18:05:27 2021 +0200
@@ -20,7 +20,7 @@
 INCLUDE(CTest)
 
 # CMake version
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
 
 # Location of additional CMake modules
 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
--- a/libfdcore/CMakeLists.txt	Tue Oct 27 10:50:04 2020 +0100
+++ b/libfdcore/CMakeLists.txt	Wed Jun 16 18:05:27 2021 +0200
@@ -2,10 +2,7 @@
 Project("freeDiameter core library" C)
 
 # Configuration for newer cmake
-cmake_policy(VERSION 2.6)
-if (POLICY CMP0022)
-	cmake_policy(SET CMP0022 OLD)
-endif (POLICY CMP0022)
+cmake_policy(VERSION 2.8.12)
 
 # Configuration parser
 BISON_FILE(fdd.y)
--- a/libfdproto/CMakeLists.txt	Tue Oct 27 10:50:04 2020 +0100
+++ b/libfdproto/CMakeLists.txt	Wed Jun 16 18:05:27 2021 +0200
@@ -2,10 +2,7 @@
 Project("libfdproto" C)
 
 # Configuration for newer cmake
-cmake_policy(VERSION 2.6)
-if (POLICY CMP0022)
-	cmake_policy(SET CMP0022 OLD)
-endif (POLICY CMP0022)
+cmake_policy(VERSION 2.8.12)
 
 # List of source files for the library
 SET(LFDPROTO_SRC
"Welcome to our mercurial repository"