File: cmake_minimum.patch

package info (click to toggle)
zdbsp 1.19%2B20181027%2Bdfsg.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 700 kB
  • sloc: cpp: 9,660; ansic: 1,525; sh: 14; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
commit 857fdb99a0b1c2037289c3d19e6af9603e4f0ef1
Author: Su <su@angel-island.zone>
Date:   Fri Jun 13 02:42:37 2025 +0100

    add latest cmake to version requirements
    
    this prevents current versions of cmake from erroring out due to out-of-date version requirements. we could have just changed the minimum to 3.5, but that results in a further deprecation warning; instead, adding the max gives the most amount of time until someone needs to update this again, and as a bonus should remain compatible with older cmake versions. in theory at least, we're not a cmake guru

Origin: https://github.com/rheit/zdbsp/commit/857fdb99a0b1c2037289c3d19e6af9603e4f0ef1.patch
Bug: https://github.com/rheit/zdbsp/pull/7
Bug-Debian: https://bugs.debian.org/1113658
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 )