summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-10-03 15:16:42 (GMT)
committerBrad King <brad.king@kitware.com>2024-10-03 18:18:26 (GMT)
commit84db8506ffc38381dd2502be41879ffe03d8e8e9 (patch)
tree5320985b175509d1070ddfa0c64973cf821d29b9 /Tests/RunCMake/try_compile
parent9e3b559b6a30b8b5734849fc21a9cea1b0e2874f (diff)
downloadCMake-84db8506ffc38381dd2502be41879ffe03d8e8e9.zip
CMake-84db8506ffc38381dd2502be41879ffe03d8e8e9.tar.gz
CMake-84db8506ffc38381dd2502be41879ffe03d8e8e9.tar.bz2
Deprecate compatibility with CMake versions older than 3.10
Issue a deprecation warning on calls to `cmake_minimum_required` or `cmake_policy` that set policies based on versions older than 3.10. Note that the effective policy version includes `...<max>` treatment. Update the check from commit 3a4791548d (Deprecate compatibility with CMake versions older than 3.5, 2023-02-09, v3.27.0-rc1~508^2).
Diffstat (limited to 'Tests/RunCMake/try_compile')
-rw-r--r--Tests/RunCMake/try_compile/CMP0066-stderr.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/CMP0066-stderr.txt b/Tests/RunCMake/try_compile/CMP0066-stderr.txt
index 0b92dcf..0b621f0 100644
--- a/Tests/RunCMake/try_compile/CMP0066-stderr.txt
+++ b/Tests/RunCMake/try_compile/CMP0066-stderr.txt
@@ -1,3 +1,10 @@
+^CMake Deprecation Warning at CMakeLists.txt:[0-9]+ \(cmake_policy\):
+ Compatibility with CMake < 3\.10 will be removed from a future version of
+ CMake\.
+
+ Update the VERSION argument <min> value or use a \.\.\.<max> suffix to tell
+ CMake that the project does not need compatibility with older versions\.
++
before try_compile with CMP0066 WARN-default
after try_compile with CMP0066 WARN-default
*