summaryrefslogtreecommitdiffstats
path: root/Help/policy/CMP0077.rst
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2021-07-17 06:27:41 (GMT)
committerCraig Scott <craig.scott@crascit.com>2021-07-17 07:18:22 (GMT)
commit7b5fa0f7b43b6d02388aa1bbf8ad29b72976d627 (patch)
tree07fad6e9030c86b1cd54a28f5013dddb9769cb9c /Help/policy/CMP0077.rst
parentc4bc250f8cabab428f3206c196000dfc07881db5 (diff)
downloadCMake-7b5fa0f7b43b6d02388aa1bbf8ad29b72976d627.zip
CMake-7b5fa0f7b43b6d02388aa1bbf8ad29b72976d627.tar.gz
CMake-7b5fa0f7b43b6d02388aa1bbf8ad29b72976d627.tar.bz2
Help: Make policy CMP0126 wording more accurate
The OLD behavior only removes a non-cache variable of the same name in specific circumstances. The previous wording implied that it would always occur. Also add a note about the behavior compared to the analogous CMP0077 policy, which affects the option() command in a similar but subtly different way.
Diffstat (limited to 'Help/policy/CMP0077.rst')
-rw-r--r--Help/policy/CMP0077.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/policy/CMP0077.rst b/Help/policy/CMP0077.rst
index 174cde9..d8744a9 100644
--- a/Help/policy/CMP0077.rst
+++ b/Help/policy/CMP0077.rst
@@ -46,6 +46,10 @@ name:
variable of the same name exists. The normal variable is not removed.
The cache entry is not created or updated and is ignored if it exists.
+See :policy:`CMP0126` for a similar policy for the :command:`set(CACHE)`
+command, but note that there are some differences in ``NEW`` behavior
+between the two policies.
+
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``