summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-04 16:20:27 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-04 16:20:27 (GMT)
commitc87517099abbef70b9718a3920954e9097f36bbe (patch)
treea04557e21e115e4aee39ee629ff30d554127339b /Source/cmMakefileLibraryTargetGenerator.cxx
parent74b982ce734dd55a4155ba8ba0462fef894d6ec0 (diff)
downloadCMake-c87517099abbef70b9718a3920954e9097f36bbe.zip
CMake-c87517099abbef70b9718a3920954e9097f36bbe.tar.gz
CMake-c87517099abbef70b9718a3920954e9097f36bbe.tar.bz2
Makefile: Factor out some duplicate link libraries generation
The generators for executable and library targets duplicate the logic to call the OutputLinkLibraries helper on the local generator. Factor it out into a cmMakefileTargetGenerator::CreateLinkLibs method to avoid dpulication.
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 807aca8..2832515 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -546,12 +546,7 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
std::string linkLibs;
if(this->Target->GetType() != cmTarget::STATIC_LIBRARY)
{
- std::string frameworkPath;
- std::string linkPath;
- this->LocalGenerator
- ->OutputLinkLibraries(linkLibs, frameworkPath, linkPath,
- *this->GeneratorTarget, relink);
- linkLibs = frameworkPath + linkPath + linkLibs;
+ this->CreateLinkLibs(linkLibs, relink, depends);
}
// Construct object file lists that may be needed to expand the