mirror of
https://github.com/reactos/CMake.git
synced 2025-01-21 02:45:05 +00:00
bd9c7f9b2c
Add policy CMP0058 to avoid generating 'phony' ninja rules for unknown custom command dependencies. This requires projects to specify their custom command byproducts explicitly. With this requirement we no longer have to assume that unknown custom command dependencies are generated and can instead simply assume they are source files expected to exist when the build starts. This is particularly important in in-source builds. It is also helpful for out-of-source builds to allow Ninja to diagnose missing files before running custom command rules that depend on them.
10 lines
432 B
ReStructuredText
10 lines
432 B
ReStructuredText
ninja-require-byproducts
|
|
------------------------
|
|
|
|
* The :generator:`Ninja` generator now requires that calls to the
|
|
:command:`add_custom_command` and :command:`add_custom_target`
|
|
commands use the ``BYPRODUCTS`` option to explicitly specify any
|
|
files generated by the custom commands that are not listed as
|
|
outputs (perhaps because their timestamps are allowed to be older
|
|
than the inputs). See policy :policy:`CMP0058`.
|