summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionEvaluator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-15 20:12:07 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-16 17:31:29 (GMT)
commit535fd6ce6d514deebc8c95424df83f73989f55a5 (patch)
tree568a68aef2720e3f58fbfa862b8b0318dc5a2f0b /Source/cmGeneratorExpressionEvaluator.cxx
parent6e7e881c57e8ff7295a1007d329708143b54baad (diff)
downloadCMake-535fd6ce6d514deebc8c95424df83f73989f55a5.zip
CMake-535fd6ce6d514deebc8c95424df83f73989f55a5.tar.gz
CMake-535fd6ce6d514deebc8c95424df83f73989f55a5.tar.bz2
cmTarget: Make GetLink*Libraries methods safer to use
Split the library lists out of LinkImplementation and LinkInterface into LinkImplementationLibraries and LinkInterfaceLibraries parent classes, respectively. Return these from GetLinkImplementationLibraries and GetLinkInterfaceLibraries, respectively, so that callers cannot access parts of the structures that have not been populated.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r--Source/cmGeneratorExpressionEvaluator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx
index 3b83cd3..1c15bd3 100644
--- a/Source/cmGeneratorExpressionEvaluator.cxx
+++ b/Source/cmGeneratorExpressionEvaluator.cxx
@@ -1114,7 +1114,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
else if (std::find_if(transBegin, transEnd,
cmStrCmp(interfacePropertyName)) != transEnd)
{
- const cmTarget::LinkImplementation *impl
+ const cmTarget::LinkImplementationLibraries *impl
= target->GetLinkImplementationLibraries(context->Config);
if(impl)
{