git repos / blockattack-game

commit 6b9ddfc4

Poul Sander · 2025-02-22 10:16
6b9ddfc46eb9e22b63487b9a949f4b5e6a39cd6a patch · browse files
parent ddc54612bc95dd33884859ee67fcd518988ff823

Update to CMake to handle newer versions

Changed files

M CMakeLists.txt before
diff --git a/CMakeLists.txt b/CMakeLists.txt index c5a29a9..2eec849 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5.1...3.27.4)
+cmake_minimum_required(VERSION 3.5.1...3.30.3)
project (blockattack)
set(BIN_DIR ${blockattack_SOURCE_DIR}/Game)
@@ -77,7 +77,7 @@ pkg_search_module(SDL2TTF REQUIRED SDL2_ttf)
find_package(Intl REQUIRED)
-find_package(Boost COMPONENTS program_options REQUIRED)
+find_package(Boost COMPONENTS program_options REQUIRED NO_MODULE)
#Find all sources but one
file(GLOB SOURCES "source/code/*.cpp" "source/code/*.inc" "source/code/*.h*" "source/code/*/*.cpp" "source/code/*/*.h*" "source/code/Libs/*.c" "source/code/Libs/*.h*")