diff options
author | Brad King <brad.king@kitware.com> | 2008-08-19 15:43:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-08-19 15:43:51 (GMT) |
commit | fe98e57e3825344811e40d30bde1c07ffeeb5696 (patch) | |
tree | 5935917ed60f489e002623aa0ef5ce2424515d3d /Source/cmSetTargetPropertiesCommand.cxx | |
parent | 41c5dd13dc2b45007db8d6d781a2655cd4ab7cba (diff) | |
download | CMake-fe98e57e3825344811e40d30bde1c07ffeeb5696.zip CMake-fe98e57e3825344811e40d30bde1c07ffeeb5696.tar.gz CMake-fe98e57e3825344811e40d30bde1c07ffeeb5696.tar.bz2 |
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.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmSetTargetPropertiesCommand.cxx b/Source/cmSetTargetPropertiesCommand.cxx index 26615dc..895386a 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 |