summaryrefslogtreecommitdiff
path: root/Source/cmComputeLinkDepends.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-10 12:23:19 +0200
committerStephen Kelly <steveire@gmail.com>2015-10-12 18:39:58 +0200
commitbf2d061ad37088be9ea6f135a980d14c4e76064b (patch)
treee6fef8ac1bb79be8e127a3572da799b2b70b3eea /Source/cmComputeLinkDepends.cxx
parent61c02decce0c1b5aa78acd58d987a5d260079ca4 (diff)
downloadcmake-bf2d061ad37088be9ea6f135a980d14c4e76064b.tar.gz
cmGeneratorTarget: Move FindTargetToLink from cmTarget.
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r--Source/cmComputeLinkDepends.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx
index 4d7b01efa8..5604c53313 100644
--- a/Source/cmComputeLinkDepends.cxx
+++ b/Source/cmComputeLinkDepends.cxx
@@ -634,8 +634,9 @@ cmComputeLinkDepends::AddLinkEntries(
}
//----------------------------------------------------------------------------
-cmTarget const* cmComputeLinkDepends::FindTargetToLink(int depender_index,
- const std::string& name)
+cmGeneratorTarget const*
+cmComputeLinkDepends::FindTargetToLink(int depender_index,
+ const std::string& name)
{
// Look for a target in the scope of the depender.
cmGeneratorTarget const* from = this->Target;
@@ -647,7 +648,7 @@ cmTarget const* cmComputeLinkDepends::FindTargetToLink(int depender_index,
from = depender;
}
}
- return from->Target->FindTargetToLink(name);
+ return from->FindTargetToLink(name);
}
//----------------------------------------------------------------------------