summaryrefslogtreecommitdiffstats
path: root/Help
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
parent480bd71b1655e84c1197c6c48bb606c18669548f (diff)
downloadCMake-16208ac1132b5624743c3ea534f610541d90ab8f.zip
CMake-16208ac1132b5624743c3ea534f610541d90ab8f.tar.gz
CMake-16208ac1132b5624743c3ea534f610541d90ab8f.tar.bz2
CMP0126: Add control for warnings
Fixes: #22353
Diffstat (limited to 'Help')
-rw-r--r--Help/policy/CMP0126.rst4
-rw-r--r--Help/variable/CMAKE_POLICY_WARNING_CMPNNNN.rst2
2 files changed, 5 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
diff --git a/Help/variable/CMAKE_POLICY_WARNING_CMPNNNN.rst b/Help/variable/CMAKE_POLICY_WARNING_CMPNNNN.rst
index 9f68741..b991db2 100644
--- a/Help/variable/CMAKE_POLICY_WARNING_CMPNNNN.rst
+++ b/Help/variable/CMAKE_POLICY_WARNING_CMPNNNN.rst
@@ -29,6 +29,8 @@ warn by default:
policy :policy:`CMP0112`.
* ``CMAKE_POLICY_WARNING_CMP0116`` controls the warning for
policy :policy:`CMP0116`.
+* ``CMAKE_POLICY_WARNING_CMP0126`` controls the warning for
+ policy :policy:`CMP0126`.
This variable should not be set by a project in CMake code. Project
developers running CMake may set this variable in their cache to