summaryrefslogtreecommitdiffstats
path: root/Help/policy/DISALLOWED_COMMAND.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-18 15:54:09 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-22 13:09:51 (GMT)
commit882c0f0b698e70be8b74aa498b62cb1fb22f3c24 (patch)
tree9154c655d59026c3ccf89b72f8e34da36694939d /Help/policy/DISALLOWED_COMMAND.txt
parentddef8a7cfffbbae12f2d2c556651f06346237569 (diff)
downloadCMake-882c0f0b698e70be8b74aa498b62cb1fb22f3c24.zip
CMake-882c0f0b698e70be8b74aa498b62cb1fb22f3c24.tar.gz
CMake-882c0f0b698e70be8b74aa498b62cb1fb22f3c24.tar.bz2
Add infrastructure for policies that disallow commands
Add cmCommand::Disallowed helper to check the setting of a policy that disallows the command. Add a RunCMake.DisallowedCommands test placeholder. Add a Help/policy/DISALLOWED_COMMAND.txt file for inclusion by each policy document to avoid duplication of the common text.
Diffstat (limited to 'Help/policy/DISALLOWED_COMMAND.txt')
-rw-r--r--Help/policy/DISALLOWED_COMMAND.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Help/policy/DISALLOWED_COMMAND.txt b/Help/policy/DISALLOWED_COMMAND.txt
new file mode 100644
index 0000000..36280d2
--- /dev/null
+++ b/Help/policy/DISALLOWED_COMMAND.txt
@@ -0,0 +1,9 @@
+CMake >= |disallowed_version| prefer that this command never be called.
+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 cmake_policy command to set it to OLD or
+NEW explicitly.