diff options
author | Brad King <brad.king@kitware.com> | 2021-02-24 14:44:54 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-02-24 14:44:59 (GMT) |
commit | 261ba006682a064177fc1d9beee9c5ec0f3ea378 (patch) | |
tree | 93e89b2ea2ff5c11ac467dd52e9d4cc5fefbd473 /Help | |
parent | 9569b3f43755e03d4f5d618a8c37005bb761816a (diff) | |
parent | 339dbc901f04369e997d8d65b60380d6255e5f10 (diff) | |
download | CMake-261ba006682a064177fc1d9beee9c5ec0f3ea378.zip CMake-261ba006682a064177fc1d9beee9c5ec0f3ea378.tar.gz CMake-261ba006682a064177fc1d9beee9c5ec0f3ea378.tar.bz2 |
Merge topic 'autogen-cmp0116-fix' into release-3.20
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')
-rw-r--r-- | Help/policy/CMP0116.rst | 5 |
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 |