MCPcopy Create free account
hub / github.com/Kitware/CMake / GetLinkRule

Method GetLinkRule

Source/cmMakefileTargetGenerator.cxx:2066–2080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2064}
2065
2066std::string cmMakefileTargetGenerator::GetLinkRule(
2067 std::string const& linkRuleVar)
2068{
2069 std::string linkRule = this->Makefile->GetRequiredDefinition(linkRuleVar);
2070 if (this->GeneratorTarget->HasImplibGNUtoMS(this->GetConfigName())) {
2071 std::string ruleVar =
2072 cmStrCat("CMAKE_",
2073 this->GeneratorTarget->GetLinkerLanguage(this->GetConfigName()),
2074 "_GNUtoMS_RULE");
2075 if (cmValue rule = this->Makefile->GetDefinition(ruleVar)) {
2076 linkRule += *rule;
2077 }
2078 }
2079 return linkRule;
2080}
2081
2082void cmMakefileTargetGenerator::CloseFileStreams()
2083{

Callers 5

WriteDeviceLinkRuleMethod · 0.95
WriteExecutableRuleMethod · 0.80
WriteLibraryRulesMethod · 0.80

Calls 4

HasImplibGNUtoMSMethod · 0.80
cmStrCatFunction · 0.70
GetLinkerLanguageMethod · 0.45
GetDefinitionMethod · 0.45

Tested by

no test coverage detected