summaryrefslogtreecommitdiffstats
path: root/Help/policy
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-24 14:44:54 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-02-24 14:44:59 (GMT)
commitab3485d15b2741746c97d1718484a58de03f219d (patch)
tree813d8ddcfb2894632050191aef214084a23ee3b2 /Help/policy
parent16a2c0cfa3ba00ade705e88c87824e8d4b5a14bf (diff)
parent339dbc901f04369e997d8d65b60380d6255e5f10 (diff)
downloadCMake-ab3485d15b2741746c97d1718484a58de03f219d.zip
CMake-ab3485d15b2741746c97d1718484a58de03f219d.tar.gz
CMake-ab3485d15b2741746c97d1718484a58de03f219d.tar.bz2
Merge topic 'autogen-cmp0116-fix'
339dbc901f Help: Note that CMP0116 is recorded at the time of CC creation e3740e020e Tests: Test Qt autogen target with CMP0116 set to WARN cf34011ce7 Tests: Test per-CC behavior of CMP0116 3a95503512 Ninja: Use CMP0116 status recorded at time of custom command's creation f01f10e8fb cmCustomCommand: Record value of CMP0116 at time of creation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5848
Diffstat (limited to 'Help/policy')
-rw-r--r--Help/policy/CMP0116.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Help/policy/CMP0116.rst b/Help/policy/CMP0116.rst
index 25a14c4..18e5a96 100644
--- a/Help/policy/CMP0116.rst
+++ b/Help/policy/CMP0116.rst
@@ -28,7 +28,10 @@ called from a subdirectory.
The ``OLD`` behavior for this policy is to pass the ``DEPFILE`` to Ninja
unaltered. The ``NEW`` behavior for this policy is to transform the ``DEPFILE``
-after running the custom command.
+after running the custom command. The status of ``CMP0116`` is recorded at the
+time of the custom command's creation, and you can have custom commands in the
+same directory with different values for ``CMP0116`` by setting the policy
+before each custom command.
This policy was introduced in CMake version 3.20. Unlike most policies,
CMake version |release| does *not* warn by default when this policy is not set