Factor makefile generator link rule lookup into helper function

This provides a place in the makefile generators to adjust the link
rules for both libraries and executables.
This commit is contained in:
Brad King
2011-12-05 16:28:03 -05:00
parent a603250a13
commit 61e862986a
4 changed files with 12 additions and 3 deletions
@@ -270,8 +270,7 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
std::string linkRuleVar = "CMAKE_";
linkRuleVar += linkLanguage;
linkRuleVar += "_LINK_EXECUTABLE";
std::string linkRule =
this->Makefile->GetRequiredDefinition(linkRuleVar.c_str());
std::string linkRule = this->GetLinkRule(linkRuleVar.c_str());
std::vector<std::string> commands1;
cmSystemTools::ExpandListArgument(linkRule, real_link_commands);
if(this->Target->IsExecutableWithExports())