summaryrefslogtreecommitdiffstats
path: root/Help/policy
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2018-06-21 18:53:11 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-09 11:48:28 (GMT)
commit2a5f5c0e316d415e1b8207348b34761d34f191ae (patch)
treea17a979c357a3148424b71fc0bcac898b1ec7e4a /Help/policy
parent12e6f83319d089b3295b4211d0d4810575e8f7d5 (diff)
downloadCMake-2a5f5c0e316d415e1b8207348b34761d34f191ae.zip
CMake-2a5f5c0e316d415e1b8207348b34761d34f191ae.tar.gz
CMake-2a5f5c0e316d415e1b8207348b34761d34f191ae.tar.bz2
option: respect existing normal variable
Add policy CMP0077 to change this behavior in a compatible way.
Diffstat (limited to 'Help/policy')
-rw-r--r--Help/policy/CMP0077.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Help/policy/CMP0077.rst b/Help/policy/CMP0077.rst
new file mode 100644
index 0000000..8efe198
--- /dev/null
+++ b/Help/policy/CMP0077.rst
@@ -0,0 +1,16 @@
+CMP0077
+-------
+
+:command:`option` honors normal variables.
+
+The ``OLD`` behavior for this policy is to clear any existing normal variables
+with the same name. The ``NEW`` behavior for this policy is to not create
+a cache entry or modify any existing normal variables if a normal variable
+with the same name already exists.
+
+This policy was introduced in CMake version 3.13. 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.
+
+.. include:: DEPRECATED.txt