zdbsp: fix build with cmake4 (#451343)
This commit is contained in:
10
pkgs/by-name/zd/zdbsp/fix-cmake-version.patch
Normal file
10
pkgs/by-name/zd/zdbsp/fix-cmake-version.patch
Normal 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 )
|
||||
@@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/rheit/zdbsp/pull/7
|
||||
./fix-cmake-version.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user