summaryrefslogtreecommitdiff
path: root/dev-cpp/libjson-rpc-cpp/files
diff options
context:
space:
mode:
authorNHOrus <jy6x2b32pie9@yahoo.com>2025-03-21 12:25:46 +0300
committerSam James <sam@gentoo.org>2025-04-12 21:58:19 +0100
commit8303dd027d731ffaa4987a91dd3f21da4ae973b0 (patch)
treed22dede7a7d0dcc65e9680285949752a7227d56c /dev-cpp/libjson-rpc-cpp/files
parent887e57314c488ab2103d267b1771bb06af6cdf93 (diff)
downloadgentoo-8303dd027d731ffaa4987a91dd3f21da4ae973b0.tar.gz
gentoo-8303dd027d731ffaa4987a91dd3f21da4ae973b0.tar.bz2
gentoo-8303dd027d731ffaa4987a91dd3f21da4ae973b0.zip
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>
Diffstat (limited to 'dev-cpp/libjson-rpc-cpp/files')
-rw-r--r--dev-cpp/libjson-rpc-cpp/files/libjson-rpc-cpp-1.4.0-cmake.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-cpp/libjson-rpc-cpp/files/libjson-rpc-cpp-1.4.0-cmake.patch b/dev-cpp/libjson-rpc-cpp/files/libjson-rpc-cpp-1.4.0-cmake.patch
new file mode 100644
index 000000000000..d2fef7ddf61a
--- /dev/null
+++ b/dev-cpp/libjson-rpc-cpp/files/libjson-rpc-cpp-1.4.0-cmake.patch
@@ -0,0 +1,33 @@
+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)