diff options
author | Brad King <brad.king@kitware.com> | 2024-10-03 15:16:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-10-03 18:18:26 (GMT) |
commit | 84db8506ffc38381dd2502be41879ffe03d8e8e9 (patch) | |
tree | 5320985b175509d1070ddfa0c64973cf821d29b9 /Tests/RunCMake/try_compile | |
parent | 9e3b559b6a30b8b5734849fc21a9cea1b0e2874f (diff) | |
download | CMake-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.txt | 7 |
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 * |