diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-10-23 20:43:19 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-11-01 18:08:18 (GMT) |
commit | b0177003e12a422845f54865ea5f34e51d8cbf01 (patch) | |
tree | 650f69195560261b4d345b600c9b7d1f84668698 /Help | |
parent | 45eff9145e82a4b1cd29396250b5235e10c4dd47 (diff) | |
download | CMake-b0177003e12a422845f54865ea5f34e51d8cbf01.zip CMake-b0177003e12a422845f54865ea5f34e51d8cbf01.tar.gz CMake-b0177003e12a422845f54865ea5f34e51d8cbf01.tar.bz2 |
cmGlobalNinjaGenerator: tell `ninja` to actually read the depfile
But only do so if the depfile is not specified as an output of the
command. Otherwise the command will out-of-date itself as `ninja`
deletes depfiles that it incorporates into the database and a missing
output will cause the command to run again.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/add_custom_command.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst index 5fe4326..2bb1390 100644 --- a/Help/command/add_custom_command.rst +++ b/Help/command/add_custom_command.rst @@ -373,6 +373,11 @@ The options are: :manual:`generator expressions <cmake-generator-expressions(7)>` was also added. + .. versionadded:: 3.29 + The :ref:`Ninja Generators` will now incorporate the dependencies into its + "deps log" database if the file is not listed in ``OUTPUTS`` or + ``BYPRODUCTS``. + Using ``DEPFILE`` with generators other than those listed above is an error. If the ``DEPFILE`` argument is relative, it should be relative to |