summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionEvaluator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-15 15:42:43 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-16 17:31:29 (GMT)
commit0a8fbac19a1d12adaa10873cc8fdb3dff164c981 (patch)
tree78f7959b9940f7d34010fc41119e33f04645cf64 /Source/cmGeneratorExpressionEvaluator.cxx
parentfb3518dc81ac1b776503d4369c6d375a706485d1 (diff)
downloadCMake-0a8fbac19a1d12adaa10873cc8fdb3dff164c981.zip
CMake-0a8fbac19a1d12adaa10873cc8fdb3dff164c981.tar.gz
CMake-0a8fbac19a1d12adaa10873cc8fdb3dff164c981.tar.bz2
cmTarget: Drop GetTransitivePropertyTargets method
Inline the implementation at the only remaining call site.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r--Source/cmGeneratorExpressionEvaluator.cxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx
index 1c15bd3..19b3e16 100644
--- a/Source/cmGeneratorExpressionEvaluator.cxx
+++ b/Source/cmGeneratorExpressionEvaluator.cxx
@@ -1098,10 +1098,20 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
if (std::find_if(transBegin, transEnd,
cmStrCmp(propertyName)) != transEnd)
{
-
std::vector<cmTarget const*> tgts;
- target->GetTransitivePropertyTargets(context->Config,
- headTarget, tgts);
+ if(cmTarget::LinkInterfaceLibraries const* iface =
+ target->GetLinkInterfaceLibraries(context->Config, headTarget, true))
+ {
+ for(std::vector<cmLinkItem>::const_iterator
+ it = iface->Libraries.begin();
+ it != iface->Libraries.end(); ++it)
+ {
+ if (it->Target)
+ {
+ tgts.push_back(it->Target);
+ }
+ }
+ }
if (!tgts.empty())
{
linkedTargetsContent =