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

Method GetTargetLinkFlags

Source/cmMakefileTargetGenerator.cxx:138–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void cmMakefileTargetGenerator::GetTargetLinkFlags(
139 std::string& flags, std::string const& linkLanguage)
140{
141 this->LocalGenerator->AddTargetPropertyLinkFlags(
142 flags, this->GeneratorTarget, this->GetConfigName());
143
144 std::vector<std::string> opts;
145 this->GeneratorTarget->GetLinkOptions(opts, this->GetConfigName(),
146 linkLanguage);
147 this->LocalGenerator->SetLinkScriptShell(
148 this->GlobalGenerator->GetUseLinkScript());
149 // LINK_OPTIONS are escaped.
150 this->LocalGenerator->AppendCompileOptions(flags, opts);
151 this->LocalGenerator->SetLinkScriptShell(false);
152
153 this->LocalGenerator->AppendLinkerTypeFlags(
154 flags, this->GeneratorTarget, this->GetConfigName(), linkLanguage);
155 this->LocalGenerator->AppendPositionIndependentLinkerFlags(
156 flags, this->GeneratorTarget, this->GetConfigName(), linkLanguage);
157 this->LocalGenerator->AppendWarningAsErrorLinkerFlags(
158 flags, this->GeneratorTarget, linkLanguage);
159 this->LocalGenerator->AppendDependencyInfoLinkerFlags(
160 flags, this->GeneratorTarget, this->GetConfigName(), linkLanguage);
161}
162
163void cmMakefileTargetGenerator::CreateRuleFile()
164{

Callers 4

WriteExecutableRuleMethod · 0.80
WriteFrameworkRulesMethod · 0.80

Tested by

no test coverage detected