summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
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/cmTarget.h
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/cmTarget.h')
-rw-r--r--Source/cmTarget.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 07004be..695d9e8 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -245,6 +245,7 @@ public:
const char *GetProperty(const char *prop);
const char *GetProperty(const char *prop, cmProperty::ScopeType scope);
bool GetPropertyAsBool(const char *prop);
+ void CheckProperty(const char* prop, cmMakefile* context);
bool IsImported() const {return this->IsImportedTarget;}