gentoo-ebuilds/games-strategy/megaglest/files/megaglest-3.13.0-cmake4.patch
Andreas Sturmlechner 71e0f9a9fd
games-strategy/megaglest: Fix build w/ cmake-4
Upstream git master is already at 3.15 and 3.10 (Windows or else)
respectively, the little extra step should be fine. Maybe pass the info
on to upstream that it really is fine to depend on a CMake version released
in 2019.

While a 3.14 release appears to be in the (slow) works, we don't
know how long it will really take them.

Closes: https://bugs.gentoo.org/964656
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-11-28 21:30:34 +01:00

19 lines
573 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-CMAKE_MINIMUM_REQUIRED( VERSION 2.8.2 )
+CMAKE_MINIMUM_REQUIRED( VERSION 3.16 )
PROJECT( MegaGlest )
#SET(CMAKE_VERBOSE_MAKEFILE ON)
@@ -14,10 +14,6 @@
ENDIF()
SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS None Debug Release RelWithDebInfo MinSizeRel)
-IF(NOT CMAKE_VERSION VERSION_LESS "3.1")
- cmake_policy(SET CMP0054 NEW)
-ENDIF()
-
# add additional CMake modules
MESSAGE(STATUS "CMAKE_SOURCE_DIR = ${CMAKE_SOURCE_DIR}")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/mk/cmake/Modules)