summaryrefslogtreecommitdiff
path: root/Source/cmSetTargetPropertiesCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-19 11:43:51 -0400
committerBrad King <brad.king@kitware.com>2008-08-19 11:43:51 -0400
commitfe98e57e3825344811e40d30bde1c07ffeeb5696 (patch)
tree5935917ed60f489e002623aa0ef5ce2424515d3d /Source/cmSetTargetPropertiesCommand.cxx
parent41c5dd13dc2b45007db8d6d781a2655cd4ab7cba (diff)
downloadcmake-fe98e57e3825344811e40d30bde1c07ffeeb5696.tar.gz
ENH: Disallow link-type keywords in link interface
The LINK_INTERFACE_LIBRARIES target property may not contain the "debug", "optimized", or "general" keywords. These keywords are supported only by the target_link_libraries (and link_libraries) command and are not a generic library list feature in CMake. When a user attempts to add one of these keywords to the property value, we now produce an error message that refers users to alternative means.
Diffstat (limited to 'Source/cmSetTargetPropertiesCommand.cxx')
-rw-r--r--Source/cmSetTargetPropertiesCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmSetTargetPropertiesCommand.cxx b/Source/cmSetTargetPropertiesCommand.cxx
index 26615dc3ac..895386ab48 100644
--- a/Source/cmSetTargetPropertiesCommand.cxx
+++ b/Source/cmSetTargetPropertiesCommand.cxx
@@ -103,6 +103,7 @@ bool cmSetTargetPropertiesCommand
{
target->SetProperty(propertyPairs[k].c_str(),
propertyPairs[k+1].c_str());
+ target->CheckProperty(propertyPairs[k].c_str(), mf);
}
}
// if file is not already in the makefile, then add it