summaryrefslogtreecommitdiff
path: root/dev-lang/oorexx/files/oorexx-5.0.0-cmake_minimum_required.patch
blob: baf09275435f592b45862c2065e844188c61f708 (plain)
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
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,13 +42,11 @@
 message(STATUS "CMake version is ${CMAKE_VERSION}")
 if (APPLE)
     # apple builds with prior cmake version have an @rpath problem
-    cmake_minimum_required (VERSION 3.12)
+    cmake_minimum_required (VERSION 3.20)
 else ()
     # for other platforms
-    cmake_minimum_required (VERSION 2.8.12)
+    cmake_minimum_required (VERSION 3.20)
 endif ()
-# CMP0091 introduced in 3.15 must stay OLD for our /MD -> /MT hack to work
-cmake_policy(VERSION 2.8...3.3)
 
 # must come before the project command
 # 10.13.6 High Sierra is the minimum system supported
--- a/testbinaries/CMakeLists.txt
+++ b/testbinaries/CMakeLists.txt
@@ -40,12 +40,11 @@
 #/*----------------------------------------------------------------------------*/
 if (APPLE)
 # apple build with lower cmake version have an @rpath problem
-    cmake_minimum_required (VERSION 3.12)
+    cmake_minimum_required (VERSION 3.20)
 else()
 #for other platforms
-    cmake_minimum_required (VERSION 2.8.12)
+    cmake_minimum_required (VERSION 3.20)
 endif()
-cmake_policy(VERSION 2.8...3.3)
 
 #/*----------------------------------------------------------------------------*/
 #/* Project settings                                                           */