git repos / saland

commit ea6b9918

Poul Sander · 2026-04-23 20:01
ea6b9918ecfc8bfb208cf9a74a694caaa48ec28e patch · browse files
parent 643d0afc608790f247d5d0fabfca867939d5a0d2

Improve propability that we will compile

Changed files

M CMakeLists.txt before
M embedded_libs/PlatformFolders-4.1.0/CMakeLists.txt before
M embedded_libs/box2d-2.4.1/CMakeLists.txt before
diff --git a/CMakeLists.txt b/CMakeLists.txt index d0d18fc..99ca28d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.10.2)
+cmake_minimum_required(VERSION 3.10..99.0)
project (saland)
# Define install paths
@@ -37,6 +37,9 @@ if (WIN32)
endif()
endif()
+if(POLICY CMP0167)
+ cmake_policy(SET CMP0167 NEW)
+endif()
find_package(Boost COMPONENTS program_options REQUIRED)
# box2d is not API compatible between versions (not even minor versions), so this explicit version must always be used.
diff --git a/embedded_libs/PlatformFolders-4.1.0/CMakeLists.txt b/embedded_libs/PlatformFolders-4.1.0/CMakeLists.txt index 0144d7c..2b0df7d 100644 --- a/embedded_libs/PlatformFolders-4.1.0/CMakeLists.txt +++ b/embedded_libs/PlatformFolders-4.1.0/CMakeLists.txt
@@ -1,5 +1,5 @@
# For target_compile_features
-cmake_minimum_required(VERSION 3.28.0..4.1.0 )
+cmake_minimum_required(VERSION 3.28.0..99.0 )
project(platform_folders VERSION 4.1.0 LANGUAGES CXX)
# Since it's off, the library will be static by default
diff --git a/embedded_libs/box2d-2.4.1/CMakeLists.txt b/embedded_libs/box2d-2.4.1/CMakeLists.txt index ff2c664..d2ad225 100644 --- a/embedded_libs/box2d-2.4.1/CMakeLists.txt +++ b/embedded_libs/box2d-2.4.1/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.8)
+cmake_minimum_required(VERSION 3.10..99.0)
# https://cmake.org/cmake/help/latest/command/project.html
project(box2d VERSION 2.4.1)