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

Method GetLinkOptions

Source/cmGeneratorTarget_Options.cxx:466–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466void cmGeneratorTarget::GetLinkOptions(std::vector<std::string>& result,
467 std::string const& config,
468 std::string const& language) const
469{
470 if (this->IsDeviceLink() &&
471 this->GetPolicyStatusCMP0105() != cmPolicies::NEW) {
472 // link options are not propagated to the device link step
473 return;
474 }
475
476 std::vector<BT<std::string>> tmp = this->GetLinkOptions(config, language);
477 result.reserve(tmp.size());
478 for (BT<std::string>& v : tmp) {
479 result.emplace_back(std::move(v.Value));
480 }
481}
482
483std::vector<BT<std::string>> cmGeneratorTarget::GetLinkOptions(
484 std::string const& config, std::string const& language) const

Callers 8

CreateBuildSettingsMethod · 0.80
GetDeviceLinkFlagsMethod · 0.80
GetTargetLinkFlagsMethod · 0.80
GetDeviceLinkFlagsMethod · 0.80
GetTargetFlagsMethod · 0.80
OutputBuildToolMethod · 0.80
ComputeLinkOptionsMethod · 0.80

Calls 15

IsDeviceLinkMethod · 0.95
moveFunction · 0.85
AddInterfaceEntriesFunction · 0.85
processOptionsFunction · 0.85
wrapOptionsFunction · 0.85
appendFunction · 0.85
reserveMethod · 0.80
emplace_backMethod · 0.80
pop_backMethod · 0.80
eraseMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected