Skip to content

Commit fdd3689

Browse files
committed
Fix cmake deprecation warning
CMake release 3.31 deprecates compatibility with versions of CMake older than 3.10. The release notes states: 'Compatibility with versions of CMake older than 3.10 is now deprecated and will be removed from a future version. Calls to cmake_minimum_required() or cmake_policy() that set the policy version to an older value now issue a deprecation diagnostic.' https://cmake.org/cmake/help/latest/release/3.31.html#deprecated-and-removed-features Updating from 3.5 release (2016-03-08) to 3.11 release (2018-03-28) fixes the warning without giving an high constraint to the users because it will work for install 7 years old. Source code will not be blocked to old releases if other upgrades are needed in the future.
1 parent 53a1d13 commit fdd3689

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

_includes/samples/audio/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.11)
22

33
project(audio)
44

_includes/samples/controls/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.11)
22

33
project(controls)
44

_includes/samples/hello/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.11)
22

33
project(hello)
44

_includes/samples/sdl2/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.11)
22

33
project(sdl2)
44

_includes/samples/sdl2_image/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.11)
22

33
project(sdl2-image)
44

_includes/samples/sdl2_mixer/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.11)
22

33
project(sdl2_mixer)
44

_includes/samples/sdl2_ttf/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.11)
22

33
project(sdl2_ttf)
44

_includes/samples/shape/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.11)
22

33
project(shape)
44

_includes/samples/sprite/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.11)
22

33
project(texture)
44

0 commit comments

Comments
 (0)