summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2015-03-09 11:12:13 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2015-03-09 11:45:38 (GMT)
commit242c396656783b1b3d542b14bc62710a46a87518 (patch)
tree8d460b76a2b377433b774815b1914d9b4b86043a /Source/cmPolicies.cxx
parentbdb00b36133c64a36fbba7fd6c648725062b6732 (diff)
downloadCMake-242c396656783b1b3d542b14bc62710a46a87518.zip
CMake-242c396656783b1b3d542b14bc62710a46a87518.tar.gz
CMake-242c396656783b1b3d542b14bc62710a46a87518.tar.bz2
add_custom_command: Diagnose MAIN_DEPENDENCY limitation.
The new policy CMP0057 diagnoses reuse of the same MAIN_DEPENDENCY across multiple custom commands.
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r--Source/cmPolicies.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index 3a48101..07e210e 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -374,6 +374,11 @@ cmPolicies::cmPolicies()
CMP0056, "CMP0056",
"Honor link flags in try_compile() source-file signature.",
3,2,0, cmPolicies::WARN);
+
+ this->DefinePolicy(
+ CMP0057, "CMP0057",
+ "Disallow multiple MAIN_DEPENDENCY specifications for the same file.",
+ 3,3,0, cmPolicies::WARN);
}
cmPolicies::~cmPolicies()