Update CMake to request new behavior for all policies through v3.28.0. (#17496)
Our CMake code definitely works fine with all versions from our minimum suppored version of 3.13 up to and including 3.28, and any of the policies that are likely to affect us should use the new behavior anyway because the old behavior leads to the possiblity of incorrect builds, so explicitly request that CMake all CMake policies provided by the used version up to those provided by v3.28.0 are set to the new behavior.
Austin S. Hemmelgarn committed
Apr 25, 2024 at 09:21 UTC
63ec0d89dd6ac9ec739aa3af346882a1a6a945f3
1 file changed
+1
-5
CMakeLists.txt
+1
-5
@@ -1,10 +1,6 @@
1
# SPDX-License-Identifier: GPL-3.0-or-later
2
3
-cmake_minimum_required(VERSION 3.13.0)
4
-
5
-if(POLICY CMP0135)
6
- cmake_policy(SET CMP0135 NEW)
7
-endif()
3
+cmake_minimum_required(VERSION 3.13.0...3.28)
4
5
#
6
# version atrocities