summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-08 15:33:14 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-08 15:33:14 (GMT)
commit2053e0cd51810d434ec4563186d5e2792d1c9cab (patch)
tree9941a15086825e24aac3d8b436ba5cd0398b83ec /Source/cmPolicies.cxx
parent064e6d32728a73edcf44d6b52572dbec19e0c90d (diff)
parent596b2a8c0820bed8195e2377927a18cf2d76727c (diff)
downloadCMake-2053e0cd51810d434ec4563186d5e2792d1c9cab.zip
CMake-2053e0cd51810d434ec4563186d5e2792d1c9cab.tar.gz
CMake-2053e0cd51810d434ec4563186d5e2792d1c9cab.tar.bz2
Merge topic 'tll-target-policies'
596b2a8 Disallow linking to utility targets (#13902). 301bb5c Disallow link-to-self (#13947). 05f5fde Disallow invalid target names (#13140)
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r--Source/cmPolicies.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index ab822d3..3881c54 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -286,6 +286,21 @@ cmPolicies::cmPolicies()
CMP0036, "CMP0036",
"The build_name command should not be called.",
3,0,0,0, cmPolicies::WARN);
+
+ this->DefinePolicy(
+ CMP0037, "CMP0037",
+ "Target names should match a validity pattern.",
+ 3,0,0,0, cmPolicies::WARN);
+
+ this->DefinePolicy(
+ CMP0038, "CMP0038",
+ "Targets may not link directly to themselves.",
+ 3,0,0,0, cmPolicies::WARN);
+
+ this->DefinePolicy(
+ CMP0039, "CMP0039",
+ "Utility targets may not have link dependencies",
+ 3,0,0,0, cmPolicies::WARN);
}
cmPolicies::~cmPolicies()