File: 0004-Make-it-buildable-with-cmake-4.patch

package info (click to toggle)
allegro5 2%3A5.2.10.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,872 kB
  • sloc: ansic: 109,795; cpp: 12,976; objc: 4,592; java: 2,845; python: 2,595; javascript: 1,238; sh: 1,008; makefile: 40; xml: 27; pascal: 24
file content (36 lines) | stat: -rw-r--r-- 1,005 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: =?utf-8?q?Andreas_R=C3=B6nnquist?= <gusnan@debian.org>
Date: Tue, 2 Sep 2025 13:09:43 +0200
Subject: Make it buildable with cmake 4

---
 CMakeLists.txt | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c7f02b7..91864cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,22 +5,7 @@
 # - some documentation targets still missing
 # - installing documentation
 #
-cmake_minimum_required(VERSION 3.0)
-if(COMMAND cmake_policy)
-    cmake_policy(SET CMP0003 NEW)
-    if(POLICY CMP0026)
-        cmake_policy(SET CMP0026 NEW)
-    endif()
-    if(POLICY CMP0072)
-        cmake_policy(SET CMP0072 NEW)
-    endif()
-    if(POLICY CMP0060)
-        cmake_policy(SET CMP0060 NEW)
-    endif()
-    if(POLICY CMP0075)
-        cmake_policy(SET CMP0075 NEW)
-    endif()
-endif(COMMAND cmake_policy)
+cmake_minimum_required(VERSION 3.12...4.0)
 
 
 #-----------------------------------------------------------------------------#