summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-05 18:15:53 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-07 10:06:40 (GMT)
commit596b2a8c0820bed8195e2377927a18cf2d76727c (patch)
tree093b7a88d4d3b32dffce49dce5d57d27ceeaa1aa /Source/cmPolicies.cxx
parent301bb5cdda081f0bef0702e41ae4b47102b235df (diff)
downloadCMake-596b2a8c0820bed8195e2377927a18cf2d76727c.zip
CMake-596b2a8c0820bed8195e2377927a18cf2d76727c.tar.gz
CMake-596b2a8c0820bed8195e2377927a18cf2d76727c.tar.bz2
Disallow linking to utility targets (#13902).
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 af33d0b..3881c54 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -296,6 +296,11 @@ cmPolicies::cmPolicies()
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()