summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeTargetDepends.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-12 20:22:11 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-23 13:17:00 (GMT)
commit0dc9e88d76fa74440fc3b38032738a21ce72f2d7 (patch)
tree5ba1a5691a912da3790f68827d89e6cae3fe6453 /Source/cmComputeTargetDepends.cxx
parent4ac72455fd7027039d498f007fdfe7c1d819b9f9 (diff)
downloadCMake-0dc9e88d76fa74440fc3b38032738a21ce72f2d7.zip
CMake-0dc9e88d76fa74440fc3b38032738a21ce72f2d7.tar.gz
CMake-0dc9e88d76fa74440fc3b38032738a21ce72f2d7.tar.bz2
cmTarget: Remove 'head' argument from GetLinkImplementation
Many of the 'head' arguments added by commit v2.8.11~289^2~1 (Make linking APIs aware of 'head' target, 2013-01-04) turned out not to be needed. The "link implementation" of a target never needs to be computed with anything but itself as the 'head' target (except for CMP0022 OLD behavior because then it is the link interface). Remove the unused 'head' target paths. Add "internal" versions of cmTarget::GetDirectLinkLibraries and GetLinkImplementationLibraries to support the CMP0022 OLD behavior without otherwise exposing the 'head' target option of these methods.
Diffstat (limited to 'Source/cmComputeTargetDepends.cxx')
-rw-r--r--Source/cmComputeTargetDepends.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx
index 8e75807..a5df060 100644
--- a/Source/cmComputeTargetDepends.cxx
+++ b/Source/cmComputeTargetDepends.cxx
@@ -250,7 +250,7 @@ void cmComputeTargetDepends::CollectTargetDepends(int depender_index)
}
}
std::vector<std::string> tlibs;
- depender->GetDirectLinkLibraries(*it, tlibs, depender);
+ depender->GetDirectLinkLibraries(*it, tlibs);
// A target should not depend on itself.
emitted.insert(depender->GetName());