summaryrefslogtreecommitdiff
path: root/Help/policy
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-11-22 14:48:36 -0500
committerBrad King <brad.king@kitware.com>2021-11-22 14:56:17 -0500
commit5b1c24255f3ca2404134d2fd9270d2edc0801bdd (patch)
tree80df4d869eb905e69f04c4615cd5be41a3414490 /Help/policy
parentc44636a89b93c6c024d8aa318f932beec0453db4 (diff)
downloadcmake-5b1c24255f3ca2404134d2fd9270d2edc0801bdd.tar.gz
Help: Suggest CMAKE_POLICY_DEFAULT_CMP0077 in CMP0077 docs
Issue: #20490
Diffstat (limited to 'Help/policy')
-rw-r--r--Help/policy/CMP0077.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/policy/CMP0077.rst b/Help/policy/CMP0077.rst
index d8744a9458..482125a794 100644
--- a/Help/policy/CMP0077.rst
+++ b/Help/policy/CMP0077.rst
@@ -53,6 +53,8 @@ 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``
-explicitly.
+explicitly within a project. Use the :variable:`CMAKE_POLICY_DEFAULT_CMP0077
+<CMAKE_POLICY_DEFAULT_CMP\<NNNN\>>` variable to set the policy for
+a third-party project in a subdirectory without modifying it.
.. include:: DEPRECATED.txt