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 /Source | |
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 'Source')
-rw-r--r-- | Source/cmPolicies.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx index 16aefff..d3b2769 100644 --- a/Source/cmPolicies.cxx +++ b/Source/cmPolicies.cxx @@ -272,9 +272,9 @@ bool cmPolicies::ApplyPolicyVersion(cmMakefile* mf, unsigned int majorVer, MessageType::DEPRECATION_WARNING, "Compatibility with CMake < 3.10 will be removed from " "a future version of CMake.\n" - "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."); } // now loop over all the policies and set them as appropriate |