diff options
author | Brad King <brad.king@kitware.com> | 2024-11-14 14:26:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-11-14 14:40:01 (GMT) |
commit | 4c4f173876a5261b228c90210ddb3e5f47f4454b (patch) | |
tree | 9a89a8f3a5c2e8b60e4201312e2d22662cac2f4d /Tests/RunCMake/RunCMake.cmake | |
parent | 6a2590498388a65e211cb81e4b0cea705d7373bf (diff) | |
download | CMake-4c4f173876a5261b228c90210ddb3e5f47f4454b.zip CMake-4c4f173876a5261b228c90210ddb3e5f47f4454b.tar.gz CMake-4c4f173876a5261b228c90210ddb3e5f47f4454b.tar.bz2 |
Clarify advice given by compatibility deprecation message for CMake < 3.10
Since commit 84db8506ff (Deprecate compatibility with CMake versions older
than 3.10, 2024-10-03, v3.31.0-rc1~23^2) the `cmake_minimum_required` and
`cmake_policy` commands warn if the project does not enable policies as
of 3.10 or higher. Clarify the advice given in the warning message about
how to update the version specification, particularly without actually
requiring a newer minimum version of CMake.
Diffstat (limited to 'Tests/RunCMake/RunCMake.cmake')
-rw-r--r-- | Tests/RunCMake/RunCMake.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake index bf124dd..6251ca0 100644 --- a/Tests/RunCMake/RunCMake.cmake +++ b/Tests/RunCMake/RunCMake.cmake @@ -227,8 +227,9 @@ function(run_cmake test) 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\. + Update the VERSION argument <min> value\. Or, use the <min>\.\.\.<max> syntax + to tell CMake that the project requires at least <min> but has been updated + to work with policies introduced by <max> or earlier\. + ]] "" actual_stderr "${actual_stderr}") endif() |