From e64e5450dfd920bb7c5b869ca3424cbb37e65eb5 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Sat, 4 Jan 2025 12:51:35 +0100 Subject: [PATCH] Bump cmake minimum version to 3.23 --- CMakeLists.txt | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c0e1a69dabb..e283e40d65c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,17 +1,12 @@ ############################################################# # CMake settings -cmake_minimum_required(VERSION 3.12.0) +cmake_minimum_required(VERSION 3.23.0) set(CMAKE_COLOR_MAKEFILE ON) set(CMAKE_AUTORCC ON) # set path to additional CMake modules set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) # POLICIES -cmake_policy(SET CMP0048 NEW) -cmake_policy(SET CMP0053 NEW) -cmake_policy(SET CMP0071 NEW) -cmake_policy(SET CMP0094 NEW) if(NOT "${CMAKE_VERSION}" VERSION_LESS "3.27") - cmake_policy(SET CMP0144 NEW) # include(Dart) still used, as is the "Experimental" target cmake_policy(SET CMP0145 OLD) endif() @@ -1027,20 +1022,6 @@ if (WITH_CORE) string(REPLACE "" "" CMAKE_CXX_CREATE_SHARED_MODULE "${CMAKE_CXX_CREATE_SHARED_MODULE}") endif() - #assume we have escaped compiler directives - #eventually we want to change this to new - #since we don't need to jump through so many - #hoops to escape compiler directives then - if(COMMAND cmake_policy) - cmake_policy(SET CMP0003 NEW) - if(NOT "${CMAKE_VERSION}" VERSION_LESS "3.3") - cmake_policy(SET CMP0063 NEW) - endif() - if(MSVC) - cmake_policy(SET CMP0020 NEW) - endif() - endif() - if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")