File: CMake4.patch

package info (click to toggle)
gridtools 2.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 29,480 kB
  • sloc: cpp: 228,792; python: 17,561; javascript: 9,164; ansic: 4,101; sh: 850; makefile: 231; f90: 201
file content (193 lines) | stat: -rw-r--r-- 7,153 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,8 +11,8 @@
 #   the environment from which GridTools was installed is irrelevant for the installation.
 #   Therefore, we use the same macro to setup CMake targets in the main CMakeLists.txt (this file) and in the
 #   GridToolsConfig.cmake of an installation (see cmake/public/gridtools_setup_target.cmake)
-cmake_minimum_required(VERSION 3.21.0)
-cmake_policy(VERSION 3.21.0)
+cmake_minimum_required(VERSION 3.30.0)
+cmake_policy(VERSION 3.30.0)
 
 file(STRINGS "version.txt" __GT_VERSION)
 project(GridTools VERSION ${__GT_VERSION} LANGUAGES CXX)
--- a/_deps/pybind11-src/CMakeLists.txt
+++ b/_deps/pybind11-src/CMakeLists.txt
@@ -7,14 +7,7 @@
 
 cmake_minimum_required(VERSION 3.4)
 
-# The `cmake_minimum_required(VERSION 3.4...3.22)` syntax does not work with
-# some versions of VS that have a patched CMake 3.11. This forces us to emulate
-# the behavior using the following workaround:
-if(${CMAKE_VERSION} VERSION_LESS 3.22)
-  cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
-else()
-  cmake_policy(VERSION 3.22)
-endif()
+cmake_policy(VERSION 3.30)
 
 # Avoid infinite recursion if tests include this as a subdirectory
 if(DEFINED PYBIND11_MASTER_PROJECT)
--- a/_deps/pybind11-src/tests/CMakeLists.txt
+++ b/_deps/pybind11-src/tests/CMakeLists.txt
@@ -7,14 +7,7 @@
 
 cmake_minimum_required(VERSION 3.4)
 
-# The `cmake_minimum_required(VERSION 3.4...3.18)` syntax does not work with
-# some versions of VS that have a patched CMake 3.11. This forces us to emulate
-# the behavior using the following workaround:
-if(${CMAKE_VERSION} VERSION_LESS 3.21)
-  cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
-else()
-  cmake_policy(VERSION 3.21)
-endif()
+cmake_policy(VERSION 3.30)
 
 # Only needed for CMake < 3.5 support
 include(CMakeParseArguments)
--- a/_deps/pybind11-src/tests/test_cmake_build/installed_embed/CMakeLists.txt
+++ b/_deps/pybind11-src/tests/test_cmake_build/installed_embed/CMakeLists.txt
@@ -1,13 +1,6 @@
 cmake_minimum_required(VERSION 3.4)
 
-# The `cmake_minimum_required(VERSION 3.4...3.18)` syntax does not work with
-# some versions of VS that have a patched CMake 3.11. This forces us to emulate
-# the behavior using the following workaround:
-if(${CMAKE_VERSION} VERSION_LESS 3.18)
-  cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
-else()
-  cmake_policy(VERSION 3.18)
-endif()
+cmake_policy(VERSION 3.30)
 
 project(test_installed_embed CXX)
 
--- a/_deps/pybind11-src/tests/test_cmake_build/installed_function/CMakeLists.txt
+++ b/_deps/pybind11-src/tests/test_cmake_build/installed_function/CMakeLists.txt
@@ -1,14 +1,7 @@
 cmake_minimum_required(VERSION 3.4)
 project(test_installed_module CXX)
 
-# The `cmake_minimum_required(VERSION 3.4...3.18)` syntax does not work with
-# some versions of VS that have a patched CMake 3.11. This forces us to emulate
-# the behavior using the following workaround:
-if(${CMAKE_VERSION} VERSION_LESS 3.18)
-  cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
-else()
-  cmake_policy(VERSION 3.18)
-endif()
+cmake_policy(VERSION 3.30)
 
 project(test_installed_function CXX)
 
--- a/_deps/pybind11-src/tests/test_cmake_build/installed_target/CMakeLists.txt
+++ b/_deps/pybind11-src/tests/test_cmake_build/installed_target/CMakeLists.txt
@@ -1,13 +1,5 @@
 cmake_minimum_required(VERSION 3.4)
-
-# The `cmake_minimum_required(VERSION 3.4...3.18)` syntax does not work with
-# some versions of VS that have a patched CMake 3.11. This forces us to emulate
-# the behavior using the following workaround:
-if(${CMAKE_VERSION} VERSION_LESS 3.18)
-  cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
-else()
-  cmake_policy(VERSION 3.18)
-endif()
+cmake_policy(VERSION 3.30)
 
 project(test_installed_target CXX)
 
--- a/_deps/pybind11-src/tests/test_cmake_build/subdirectory_embed/CMakeLists.txt
+++ b/_deps/pybind11-src/tests/test_cmake_build/subdirectory_embed/CMakeLists.txt
@@ -1,13 +1,5 @@
 cmake_minimum_required(VERSION 3.4)
-
-# The `cmake_minimum_required(VERSION 3.4...3.18)` syntax does not work with
-# some versions of VS that have a patched CMake 3.11. This forces us to emulate
-# the behavior using the following workaround:
-if(${CMAKE_VERSION} VERSION_LESS 3.18)
-  cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
-else()
-  cmake_policy(VERSION 3.18)
-endif()
+cmake_policy(VERSION 3.30)
 
 project(test_subdirectory_embed CXX)
 
--- a/_deps/pybind11-src/tests/test_cmake_build/subdirectory_function/CMakeLists.txt
+++ b/_deps/pybind11-src/tests/test_cmake_build/subdirectory_function/CMakeLists.txt
@@ -1,13 +1,5 @@
 cmake_minimum_required(VERSION 3.4)
-
-# The `cmake_minimum_required(VERSION 3.4...3.18)` syntax does not work with
-# some versions of VS that have a patched CMake 3.11. This forces us to emulate
-# the behavior using the following workaround:
-if(${CMAKE_VERSION} VERSION_LESS 3.18)
-  cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
-else()
-  cmake_policy(VERSION 3.18)
-endif()
+cmake_policy(VERSION 3.30)
 
 project(test_subdirectory_function CXX)
 
--- a/_deps/pybind11-src/tests/test_cmake_build/subdirectory_target/CMakeLists.txt
+++ b/_deps/pybind11-src/tests/test_cmake_build/subdirectory_target/CMakeLists.txt
@@ -1,13 +1,5 @@
 cmake_minimum_required(VERSION 3.4)
-
-# The `cmake_minimum_required(VERSION 3.4...3.18)` syntax does not work with
-# some versions of VS that have a patched CMake 3.11. This forces us to emulate
-# the behavior using the following workaround:
-if(${CMAKE_VERSION} VERSION_LESS 3.18)
-  cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
-else()
-  cmake_policy(VERSION 3.18)
-endif()
+cmake_policy(VERSION 3.30)
 
 project(test_subdirectory_target CXX)
 
--- a/docs_src/manuals/getting_started/code/CMakeLists.txt
+++ b/docs_src/manuals/getting_started/code/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.21.0)
+cmake_minimum_required(VERSION 3.30.0)
 
 project(GridTools-laplacian LANGUAGES CXX)
 
--- a/_deps/googletest-src/CMakeLists.txt
+++ b/_deps/googletest-src/CMakeLists.txt
@@ -1,7 +1,7 @@
 # Note: CMake support is community-based. The maintainers do not use CMake
 # internally.
 
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.30)
 
 if (POLICY CMP0048)
   cmake_policy(SET CMP0048 NEW)
--- a/_deps/googletest-src/googlemock/CMakeLists.txt
+++ b/_deps/googletest-src/googlemock/CMakeLists.txt
@@ -42,7 +42,7 @@
   cmake_policy(SET CMP0048 NEW)
   project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
 endif()
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.30)
 
 if (COMMAND set_up_hermetic_build)
   set_up_hermetic_build()
--- a/_deps/googletest-src/googletest/CMakeLists.txt
+++ b/_deps/googletest-src/googletest/CMakeLists.txt
@@ -53,7 +53,7 @@
   cmake_policy(SET CMP0048 NEW)
   project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
 endif()
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.30)
 
 if (POLICY CMP0063) # Visibility
   cmake_policy(SET CMP0063 NEW)