diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-05 18:15:53 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-11-07 10:06:40 (GMT) |
commit | 596b2a8c0820bed8195e2377927a18cf2d76727c (patch) | |
tree | 093b7a88d4d3b32dffce49dce5d57d27ceeaa1aa /Source/cmPolicies.cxx | |
parent | 301bb5cdda081f0bef0702e41ae4b47102b235df (diff) | |
download | CMake-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.cxx | 5 |
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() |