summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.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/cmGeneratorTarget.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/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index a7576ed..381a0ed 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -449,7 +449,7 @@ bool cmGeneratorTarget::IsSystemIncludeDirectory(const std::string& dir,
if (iter == this->SystemIncludesCache.end())
{
cmTarget::LinkImplementation const* impl
- = this->Target->GetLinkImplementation(config, this->Target);
+ = this->Target->GetLinkImplementation(config);
if(!impl)
{
return false;