Skip to content
  • Brad King's avatar
    Ninja: Add policy to require explicit custom command byproducts · bd9c7f9b
    Brad King authored
    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.
    bd9c7f9b