Help: Add boilerplate text to use for removed policies

This commit is contained in:
Brad King 2024-11-06 15:09:59 -05:00
parent 759b55991a
commit 6a1a08e634
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,4 @@
This policy was introduced in CMake version |INTRODUCED_IN_CMAKE_VERSION|.
Prior to removal in CMake version |REMOVED_IN_CMAKE_VERSION|, it could be
set by :command:`cmake_policy` or :command:`cmake_minimum_required`.
If it was not set, CMake |WARNED_OR_DID_NOT_WARN|, and used ``OLD`` behavior.

View File

@ -0,0 +1,5 @@
.. warning::
The ``OLD`` behavior of this policy was removed
in CMake version |REMOVED_IN_CMAKE_VERSION|.
This policy must be set to ``NEW`` by a call to
:command:`cmake_minimum_required` or :command:`cmake_policy`.