gentoo/dev-cpp/libjson-rpc-cpp/files/libjson-rpc-cpp-1.4.0-cmake.patch
NHOrus 8303dd027d
dev-cpp/libjson-rpc-cpp: Bump minimal required CMake version
Fix for CMake 4

Closes: https://bugs.gentoo.org/951671
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/41207
Signed-off-by: Sam James <sam@gentoo.org>
2025-04-12 21:58:19 +01:00

34 lines
903 B
Diff

Bump CMake minimum version, delete obsolete policy that's related to MacOS and
doesn't worry us
https://bugs.gentoo.org/951671
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.5)
# setup directory where we should look for cmake files
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
--- a/src/catch/CMakeLists.txt
+++ b/src/catch/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.5)
project(catch_builder CXX)
include(ExternalProject)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,11 +16,6 @@
cmake_policy(SET CMP0007 NEW)
cmake_policy(SET CMP0012 NEW)
-if (${CMAKE_MAJOR_VERSION} GREATER 2)
- # old policy do not use MACOSX_RPATH
- cmake_policy(SET CMP0042 OLD)
-endif()
-
set(MAJOR_VERSION 1)
set(MINOR_VERSION 4)
set(PATCH_VERSION 0)