cmake: bump CMake policy compatibility version

This commit is contained in:
Anonymous Maarten
2026-09-27 16:02:38 +02:00
parent da2d32b5f6
commit f804747a5e
10 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0...3.5)
cmake_minimum_required(VERSION 3.0...4.3)
project(ci_utils C CXX)
set(txt "CC=${CMAKE_C_COMPILER}
+2 -2
View File
@@ -2316,7 +2316,7 @@ elseif(APPLE)
endif()
# Minimum version for $<LINK_LIBRARY:feature,library-list>
cmake_minimum_required(VERSION 3.24)
cmake_minimum_required(VERSION 3.24...4.3)
# Actually load the frameworks at the end so we don't duplicate include.
if(SDL_FRAMEWORK_COREVIDEO)
@@ -3309,7 +3309,7 @@ if (SDL_ASAN)
endif()
if(SDL_CCACHE AND NOT CMAKE_VERSION VERSION_LESS 3.4)
cmake_minimum_required(VERSION 3.4...3.5)
cmake_minimum_required(VERSION 3.4...4.3)
find_program(CCACHE_BINARY ccache)
if(CCACHE_BINARY)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_BINARY})
+1 -1
View File
@@ -1,7 +1,7 @@
# SDL2 CMake configuration file:
# This file is meant to be placed in a cmake subfolder of SDL2-devel-2.x.y-VC
cmake_minimum_required(VERSION 3.0...3.28)
cmake_minimum_required(VERSION 3.0...4.3)
include(FeatureSummary)
set_package_properties(SDL2 PROPERTIES
@@ -2,7 +2,7 @@
# This file is meant to be placed in Resources/CMake of a SDL2 framework
# INTERFACE_LINK_OPTIONS needs CMake 3.12
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.12...4.3)
include(FeatureSummary)
set_package_properties(SDL2 PROPERTIES
+1 -1
View File
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.6)
cmake_minimum_required(VERSION 3.6...4.3)
project(GAME)
+1 -1
View File
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.6)
cmake_minimum_required(VERSION 3.6...4.3)
project(MY_APP)
+1 -1
View File
@@ -1,6 +1,6 @@
# This cmake build script is meant for verifying the various CMake configuration script.
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.12...4.3)
project(sdl_test LANGUAGES C)
include(CheckLanguage)
+1 -1
View File
@@ -48,7 +48,7 @@ SDL can be included in your project in 2 major ways:
The following CMake script supports both, depending on the value of `MYGAME_VENDORED`.
```cmake
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.20)
project(mygame)
# Create an option to switch between a system sdl library and a vendored sdl library
+1 -1
View File
@@ -86,7 +86,7 @@ if(EXISTS "${_sdl2main_library}")
)
if(WIN32)
# INTERFACE_LINK_OPTIONS needs CMake 3.13
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.13...4.3)
# Mark WinMain/WinMain@16 as undefined, such that it will be withheld by the linker.
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set_target_properties(SDL2::SDL2main
+1 -1
View File
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0...4.0)
cmake_minimum_required(VERSION 3.0...4.3)
project(SDL2_test C)
include(CheckCCompilerFlag)