gentoo-ebuilds/dev-lang/oorexx/files/oorexx-5.0.0-cmake_minimum_required.patch
Maciej Barć 1ac148b741
dev-lang/oorexx: bump cmake_minimum_required
Closes: https://bugs.gentoo.org/953855
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
2025-04-15 00:04:21 +02:00

35 lines
1.3 KiB
Diff

--- 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 */