Unverified Commit 160ce439 authored by Leona Maroni's avatar Leona Maroni Committed by GitHub
Browse files

zdbsp: fix build with cmake4 (#451343)

parents 562d7065 f5fc9de5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
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 )
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
    stripRoot = false;
  };

  patches = [
    # https://github.com/rheit/zdbsp/pull/7
    ./fix-cmake-version.patch
  ];

  nativeBuildInputs = [
    cmake
  ];