Help: Clarify what policies a "policy version" sets to NEW

Also remove a duplicate sentence.
This commit is contained in:
Nuno Nobre
2026-02-27 19:31:02 +00:00
committed by Brad King
parent fd1184f735
commit e3f1dc2a57

View File

@@ -9,11 +9,9 @@ CMake versions, ``<min>[...<policy_max>]``. It sets the "policy version" to:
The policy version effectively requests behavior preferred as of a given CMake
version and tells newer CMake versions to warn about their new policies.
All policies known to the running version of CMake and introduced
in that version or earlier will be set to use ``NEW`` behavior.
in the policy version or earlier will be set to use ``NEW`` behavior.
All policies introduced in later versions will be unset (unless the
:variable:`CMAKE_POLICY_DEFAULT_CMP<NNNN>` variable sets a default).
This effectively requests behavior preferred as of a given CMake
version and tells newer CMake versions to warn about their new policies.
.. note::