summaryrefslogtreecommitdiffstats
path: root/Source/cmSetPropertyCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-19 15:43:51 (GMT)
committerBrad King <brad.king@kitware.com>2008-08-19 15:43:51 (GMT)
commitfe98e57e3825344811e40d30bde1c07ffeeb5696 (patch)
tree5935917ed60f489e002623aa0ef5ce2424515d3d /Source/cmSetPropertyCommand.cxx
parent41c5dd13dc2b45007db8d6d781a2655cd4ab7cba (diff)
downloadCMake-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/cmSetPropertyCommand.cxx')
-rw-r--r--Source/cmSetPropertyCommand.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSetPropertyCommand.cxx b/Source/cmSetPropertyCommand.cxx
index 21eeaf1..9d00e32 100644
--- a/Source/cmSetPropertyCommand.cxx
+++ b/Source/cmSetPropertyCommand.cxx
@@ -271,6 +271,9 @@ bool cmSetPropertyCommand::HandleTarget(cmTarget* target)
target->SetProperty(name, value);
}
+ // Check the resulting value.
+ target->CheckProperty(name, this->Makefile);
+
return true;
}