summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2013-11-20 08:53:06 (GMT)
committerBrad King <brad.king@kitware.com>2013-11-21 14:24:08 (GMT)
commita02f3d2de00a16a68e8948db3c0de507e569f8a3 (patch)
tree065ce76b2c29a27325a0d36a8869856dbfb6dbe9 /Source/cmPolicies.cxx
parenta61025135b1c1ceea9634973b983bd3e47be8bdd (diff)
downloadCMake-a02f3d2de00a16a68e8948db3c0de507e569f8a3.zip
CMake-a02f3d2de00a16a68e8948db3c0de507e569f8a3.tar.gz
CMake-a02f3d2de00a16a68e8948db3c0de507e569f8a3.tar.bz2
Add policy CMP0040 to disallow custom commands on missing targets
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 a18fc16..b9b469c 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -301,6 +301,11 @@ cmPolicies::cmPolicies()
CMP0039, "CMP0039",
"Utility targets may not have link dependencies.",
3,0,0,0, cmPolicies::WARN);
+
+ this->DefinePolicy(
+ CMP0040, "CMP0040",
+ "The target in the TARGET signature of add_custom_command() must exist.",
+ 3,0,0,0, cmPolicies::WARN);
}
cmPolicies::~cmPolicies()