summaryrefslogtreecommitdiff
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-20 16:43:21 -0400
committerBrad King <brad.king@kitware.com>2015-03-20 17:40:12 -0400
commitbd9c7f9b2c788f9bf69c2ce4eb93d27212a6dfaa (patch)
tree8b089b3e0b7a47ed5adfc0c7a1b3a9abc8a175b0 /Source/cmPolicies.h
parented8e30b00d032594fbb67d62f8bd4319ae6e5907 (diff)
downloadcmake-bd9c7f9b2c788f9bf69c2ce4eb93d27212a6dfaa.tar.gz
Ninja: Add policy to require explicit custom command byproducts
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.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 854b132c80..b18b337667 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -115,6 +115,7 @@ public:
CMP0056, ///< Honor link flags in try_compile() source-file signature.
CMP0057, ///< Disallow multiple MAIN_DEPENDENCY specifications
/// for the same file.
+ CMP0058, ///< Ninja requires custom command byproducts to be explicit
/** \brief Always the last entry.
*