summaryrefslogtreecommitdiffstats
path: root/Help/policy
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-06-29 11:36:28 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-06-29 11:36:28 (GMT)
commit16208ac1132b5624743c3ea534f610541d90ab8f (patch)
tree8353fc636dc18ad199666d18067ed23944ce26f2 /Help/policy
parent480bd71b1655e84c1197c6c48bb606c18669548f (diff)
downloadCMake-16208ac1132b5624743c3ea534f610541d90ab8f.zip
CMake-16208ac1132b5624743c3ea534f610541d90ab8f.tar.gz
CMake-16208ac1132b5624743c3ea534f610541d90ab8f.tar.bz2
CMP0126: Add control for warnings
Fixes: #22353
Diffstat (limited to 'Help/policy')
-rw-r--r--Help/policy/CMP0126.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/policy/CMP0126.rst b/Help/policy/CMP0126.rst
index 4c8e928..0ced8fa 100644
--- a/Help/policy/CMP0126.rst
+++ b/Help/policy/CMP0126.rst
@@ -15,6 +15,8 @@ behavior for this policy is to keep the normal variable of the same name.
This policy was introduced in CMake version 3.21. Use the
:command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
Unlike many policies, CMake version |release| does *not* warn when the policy
-is not set and simply uses ``OLD`` behavior.
+is not set and simply uses ``OLD`` behavior. See documentation of the
+:variable:`CMAKE_POLICY_WARNING_CMP0126 <CMAKE_POLICY_WARNING_CMP<NNNN>>`
+variable to control the warning.
.. include:: DEPRECATED.txt