zdbsp: fix build with cmake4 (#451343)

This commit is contained in:
Leona Maroni
2025-10-14 12:34:16 +00:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b0ac4c0..fa681a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required( VERSION 2.4 )
+cmake_minimum_required( VERSION 2.4...4.0.2 )
if( COMMAND cmake_policy )
cmake_policy( SET CMP0003 NEW )
endif( COMMAND cmake_policy )

View File

@@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
stripRoot = false;
};
patches = [
# https://github.com/rheit/zdbsp/pull/7
./fix-cmake-version.patch
];
nativeBuildInputs = [
cmake
];