diff options
author | Alex Neundorf <neundorf@kde.org> | 2010-08-28 14:06:45 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2010-08-28 14:06:45 (GMT) |
commit | 6acc71c09df80e9530ff643fb4e37ebe145b46ad (patch) | |
tree | 2b198dce156f2755fa01bc2e476f2ca7672dafb4 /Source/cmPolicies.cxx | |
parent | da033b10d26c3b25c44547dec6b398cabe864510 (diff) | |
download | CMake-6acc71c09df80e9530ff643fb4e37ebe145b46ad.zip CMake-6acc71c09df80e9530ff643fb4e37ebe145b46ad.tar.gz CMake-6acc71c09df80e9530ff643fb4e37ebe145b46ad.tar.bz2 |
New CMP0016 for deciding whether an unknown target in TLL() is an error.
When set to OLD, target_link_libraries() silently accepts if it is called
with only one argument and this one argument is not a target.
When set to NEW, this is an error. By default it is a warning now.
Alex
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r-- | Source/cmPolicies.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx index fb84738..3fe92de 100644 --- a/Source/cmPolicies.cxx +++ b/Source/cmPolicies.cxx @@ -438,6 +438,14 @@ cmPolicies::cmPolicies() "CMAKE_CURRENT_SOURCE_DIR.", 2,8,1,0, cmPolicies::WARN); + this->DefinePolicy( + CMP0016, "CMP0016", + "target_link_libraries() reports error if only argument is not a target.", + "In CMake 2.8.2 and lower the target_link_libraries() command silently " + "ignored if it was called with only one argument, and this argument " + "wasn't a valid target. " + "In CMake 2.8.3 and above it reports an error in this case.", + 2,8,3,0, cmPolicies::WARN); } cmPolicies::~cmPolicies() |