summaryrefslogtreecommitdiff
path: root/dev-cpp/catch/files/catch-2.13.10-cmake4.patch
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2025-11-25 21:18:00 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2025-11-30 20:01:33 +0100
commitbf209a29ec79d3c92713f7c494f5cf6fc72f53c9 (patch)
tree141734e8bc5440d9b4cb65fb829a71a49c650b4d /dev-cpp/catch/files/catch-2.13.10-cmake4.patch
parent076f681e4d7dda960bb849ecdd0526737c673cca (diff)
downloadgentoo-bf209a29ec79d3c92713f7c494f5cf6fc72f53c9.tar.gz
gentoo-bf209a29ec79d3c92713f7c494f5cf6fc72f53c9.tar.bz2
gentoo-bf209a29ec79d3c92713f7c494f5cf6fc72f53c9.zip
dev-cpp/catch: Fix build w/ cmake-4
Closes: https://bugs.gentoo.org/957561 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-cpp/catch/files/catch-2.13.10-cmake4.patch')
-rw-r--r--dev-cpp/catch/files/catch-2.13.10-cmake4.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-cpp/catch/files/catch-2.13.10-cmake4.patch b/dev-cpp/catch/files/catch-2.13.10-cmake4.patch
new file mode 100644
index 000000000000..6327b7ca0be4
--- /dev/null
+++ b/dev-cpp/catch/files/catch-2.13.10-cmake4.patch
@@ -0,0 +1,46 @@
+From 98d37da03ee21e8a87cd3e0e6542c794c667e78b Mon Sep 17 00:00:00 2001
+From: Dimitrij Mijoski <dmjpp@hotmail.com>
+Date: Fri, 16 Sep 2022 17:56:00 +0200
+Subject: [PATCH] Raise the minimum CMake version to 3.10 (#2523)
+
+---
+ CMakeLists.txt | 2 +-
+ examples/CMakeLists.txt | 2 +-
+ tests/ExtraTests/CMakeLists.txt | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ae8e86b9b9..be12d516c4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.5)
++cmake_minimum_required(VERSION 3.10)
+
+ # detect if Catch is being bundled,
+ # disable testsuite in that case
+diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
+index b934aa7cd7..7118482eaf 100644
+--- a/examples/CMakeLists.txt
++++ b/examples/CMakeLists.txt
+@@ -1,5 +1,5 @@
+-cmake_minimum_required( VERSION 3.0 )
++cmake_minimum_required( VERSION 3.10 )
+
+-project( CatchExamples CXX )
++project( CatchExamples LANGUAGES CXX )
+
+ message( STATUS "Examples included" )
+diff --git a/projects/ExtraTests/CMakeLists.txt b/projects/ExtraTests/CMakeLists.txt
+index f1a02af3f6..0943a9c370 100644
+--- a/projects/ExtraTests/CMakeLists.txt
++++ b/projects/ExtraTests/CMakeLists.txt
+@@ -2,7 +2,7 @@
+ # Build extra tests.
+ #
+
+-cmake_minimum_required( VERSION 3.5 )
++cmake_minimum_required( VERSION 3.10 )
+
+ project( Catch2ExtraTests LANGUAGES CXX )
+