Set minimum cmake version to 3.28
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 1 Aug 2024 12:47:26 +0000 (14:47 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 1 Aug 2024 13:00:32 +0000 (15:00 +0200)
Probably a lower version would do but it's the
current version we have on the Intra2net system.

Solves one deprecation warning from Cmake.

CMakeLists.txt

index a1751bc..8529c0d 100644 (file)
@@ -1,3 +1,5 @@
+cmake_minimum_required(VERSION 3.28 FATAL_ERROR)
+
 # Project
 project(libi2ncommon)
 
@@ -11,7 +13,6 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "")
    set(CMAKE_BUILD_TYPE     Debug)
 endif("${CMAKE_BUILD_TYPE}" STREQUAL "")
 set(CMAKE_COLOR_MAKEFILE ON)
-cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
 
 # Debug build
 message("-- Build type: ${CMAKE_BUILD_TYPE}")