summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkDepends.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-26 17:37:45 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-26 17:37:45 (GMT)
commit6220241fd0bb7902c932742a7aa3d6a96fd0e919 (patch)
treefe8ad134b3e4aab83124fdfaee5f49ca72ac9cd2 /Source/cmComputeLinkDepends.cxx
parent6353816786caccfef7acb3fd72aa28e0366da405 (diff)
downloadCMake-6220241fd0bb7902c932742a7aa3d6a96fd0e919.zip
CMake-6220241fd0bb7902c932742a7aa3d6a96fd0e919.tar.gz
CMake-6220241fd0bb7902c932742a7aa3d6a96fd0e919.tar.bz2
cmGeneratorTarget: Move GetLinkInterface from cmTarget.
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r--Source/cmComputeLinkDepends.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx
index 03ec820..5e9627b 100644
--- a/Source/cmComputeLinkDepends.cxx
+++ b/Source/cmComputeLinkDepends.cxx
@@ -360,9 +360,11 @@ void cmComputeLinkDepends::FollowLinkEntry(BFSEntry const& qe)
// Follow the item's dependencies.
if(entry.Target)
{
+ cmGeneratorTarget* gtgt =
+ this->GlobalGenerator->GetGeneratorTarget(entry.Target);
// Follow the target dependencies.
if(cmLinkInterface const* iface =
- entry.Target->GetLinkInterface(this->Config, this->Target->Target))
+ gtgt->GetLinkInterface(this->Config, this->Target->Target))
{
const bool isIface =
entry.Target->GetType() == cmTarget::INTERFACE_LIBRARY;
@@ -459,8 +461,10 @@ void cmComputeLinkDepends::HandleSharedDependency(SharedDepEntry const& dep)
// Target items may have their own dependencies.
if(entry.Target)
{
+ cmGeneratorTarget* gtgt =
+ this->GlobalGenerator->GetGeneratorTarget(entry.Target);
if(cmLinkInterface const* iface =
- entry.Target->GetLinkInterface(this->Config, this->Target->Target))
+ gtgt->GetLinkInterface(this->Config, this->Target->Target))
{
// Follow public and private dependencies transitively.
this->FollowSharedDeps(index, iface, true);
@@ -930,8 +934,10 @@ int cmComputeLinkDepends::ComputeComponentCount(NodeList const& nl)
{
if(cmTarget const* target = this->EntryList[*ni].Target)
{
+ cmGeneratorTarget* gtgt =
+ this->GlobalGenerator->GetGeneratorTarget(target);
if(cmLinkInterface const* iface =
- target->GetLinkInterface(this->Config, this->Target->Target))
+ gtgt->GetLinkInterface(this->Config, this->Target->Target))
{
if(iface->Multiplicity > count)
{