File: cmake4.patch

package info (click to toggle)
catch 1.12.2-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,152 kB
  • sloc: cpp: 21,715; python: 770; ansic: 559; makefile: 2
file content (66 lines) | stat: -rw-r--r-- 2,564 bytes parent folder | download
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Thu, 25 Sep 2025 23:03:43 +0200
Subject: Bump CMake policy version

---
 CMakeLists.txt                      | 2 +-
 contrib/ParseAndAddCatchTests.cmake | 2 +-
 docs/build-systems.md               | 4 ++--
 test_package/CMakeLists.txt         | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6e608fa..e3e82dc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.10)
 
 project(CatchSelfTest)
 
diff --git a/contrib/ParseAndAddCatchTests.cmake b/contrib/ParseAndAddCatchTests.cmake
index cb2846d..f742568 100644
--- a/contrib/ParseAndAddCatchTests.cmake
+++ b/contrib/ParseAndAddCatchTests.cmake
@@ -41,7 +41,7 @@
 #                                                                                                  #
 #==================================================================================================#
 
-cmake_minimum_required(VERSION 2.8.8)
+cmake_minimum_required(VERSION 3.10)
 
 option(PARSE_CATCH_TESTS_VERBOSE "Print Catch to CTest parser debug messages" OFF)
 option(PARSE_CATCH_TESTS_NO_HIDDEN_TESTS "Exclude tests with [!hide], [.] or [.foo] tags" OFF)
diff --git a/docs/build-systems.md b/docs/build-systems.md
index 5dddc09..df77f43 100644
--- a/docs/build-systems.md
+++ b/docs/build-systems.md
@@ -58,7 +58,7 @@ Because of the incremental nature of Catch's test suites and ability to run spec
 
 In general we recommend "vendoring" Catch's single-include releases inside your own repository. If you do this, the following example shows a minimal CMake project:
 ```CMake
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.10)
 
 project(cmake_test)
 
@@ -77,7 +77,7 @@ Note that it assumes that the path to the Catch's header is `catch/catch.hpp` fr
 
 You can also use the following CMake snippet to automatically fetch the entire Catch repository from github and configure it as an external project:
 ```CMake
-cmake_minimum_required(VERSION 2.8.8)
+cmake_minimum_required(VERSION 3.10)
 project(catch_builder CXX)
 include(ExternalProject)
 find_package(Git REQUIRED)
diff --git a/test_package/CMakeLists.txt b/test_package/CMakeLists.txt
index 339facb..65d0837 100644
--- a/test_package/CMakeLists.txt
+++ b/test_package/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.10)
 project(CatchTest CXX)
 
 include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)