diff options
author | Brad King <brad.king@kitware.com> | 2014-06-12 20:22:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-23 13:17:00 (GMT) |
commit | 0dc9e88d76fa74440fc3b38032738a21ce72f2d7 (patch) | |
tree | 5ba1a5691a912da3790f68827d89e6cae3fe6453 /Source/cmComputeTargetDepends.cxx | |
parent | 4ac72455fd7027039d498f007fdfe7c1d819b9f9 (diff) | |
download | CMake-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.cxx | 2 |
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()); |