summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.h
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/cmMakefileTargetGenerator.h
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/cmMakefileTargetGenerator.h')
-rw-r--r--Source/cmMakefileTargetGenerator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.h b/Source/cmMakefileTargetGenerator.h
index 4f8fafa..d47708d 100644
--- a/Source/cmMakefileTargetGenerator.h
+++ b/Source/cmMakefileTargetGenerator.h
@@ -163,6 +163,10 @@ protected:
std::string const& options,
std::vector<std::string>& makefile_depends);
+ /** Create list of flags for link libraries. */
+ void CreateLinkLibs(std::string& linkLibs, bool relink,
+ std::vector<std::string>& makefile_depends);
+
/** Create lists of object files for linking and cleaning. */
void CreateObjectLists(bool useLinkScript, bool useArchiveRules,
bool useResponseFile, std::string& buildObjs,