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

Method GetDeviceLinkFlags

Source/cmMakefileTargetGenerator.cxx:123–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void cmMakefileTargetGenerator::GetDeviceLinkFlags(
124 std::string& linkFlags, std::string const& linkLanguage)
125{
126 cmGeneratorTarget::DeviceLinkSetter setter(*this->GetGeneratorTarget());
127
128 std::vector<std::string> linkOpts;
129 this->GeneratorTarget->GetLinkOptions(linkOpts, this->GetConfigName(),
130 linkLanguage);
131 this->LocalGenerator->SetLinkScriptShell(
132 this->GlobalGenerator->GetUseLinkScript());
133 // LINK_OPTIONS are escaped.
134 this->LocalGenerator->AppendCompileOptions(linkFlags, linkOpts);
135 this->LocalGenerator->SetLinkScriptShell(false);
136}
137
138void cmMakefileTargetGenerator::GetTargetLinkFlags(
139 std::string& flags, std::string const& linkLanguage)

Callers 1

WriteDeviceLinkRuleMethod · 0.95

Calls 5

GetGeneratorTargetMethod · 0.95
GetLinkOptionsMethod · 0.80
SetLinkScriptShellMethod · 0.80
GetUseLinkScriptMethod · 0.80
AppendCompileOptionsMethod · 0.80

Tested by

no test coverage detected