summaryrefslogtreecommitdiffstats
path: root/Help/policy/DISALLOWED_COMMAND.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-11 18:43:55 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-11 19:48:01 (GMT)
commitad3c2c0b03457c4410e31bbc8daae3bf21be2653 (patch)
tree8078b7518d3bff7a5ddfe6dc9b05df33b94915be /Help/policy/DISALLOWED_COMMAND.txt
parentc6d69d84dbdf3e2db70e6272a95d977c2c685ee2 (diff)
downloadCMake-ad3c2c0b03457c4410e31bbc8daae3bf21be2653.zip
CMake-ad3c2c0b03457c4410e31bbc8daae3bf21be2653.tar.gz
CMake-ad3c2c0b03457c4410e31bbc8daae3bf21be2653.tar.bz2
Help: Normalize and consolidate standard policy advice paragraph
Every policy's documentation has a paragraph on what version of CMake introduced it, how to set the policy, and whether CMake warns if the policy is not set. The wording of this paragraph has diverged across policies over time. Factor the paragraph out into a standard advice document included by every policy.
Diffstat (limited to 'Help/policy/DISALLOWED_COMMAND.txt')
-rw-r--r--Help/policy/DISALLOWED_COMMAND.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/Help/policy/DISALLOWED_COMMAND.txt b/Help/policy/DISALLOWED_COMMAND.txt
index 6500bb0..506f2bb 100644
--- a/Help/policy/DISALLOWED_COMMAND.txt
+++ b/Help/policy/DISALLOWED_COMMAND.txt
@@ -3,7 +3,6 @@ The ``OLD`` behavior for this policy is to allow the command to be called.
The ``NEW`` behavior for this policy is to issue a ``FATAL_ERROR`` when the
command is called.
-This policy was introduced in CMake version |disallowed_version|.
-CMake version |release| warns when the policy is not set and uses
-``OLD`` behavior. Use the :command:`cmake_policy` command to set it to ``OLD`` or
-``NEW`` explicitly.
+.. |INTRODUCED_IN_CMAKE_VERSION| replace:: |disallowed_version|
+.. |WARNS_OR_DOES_NOT_WARN| replace:: warns
+.. include:: STANDARD_ADVICE.txt