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

Method AddTargetPropertyLinkFlags

Source/cmLocalGenerator.cxx:3536–3551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3534}
3535
3536void cmLocalGenerator::AddTargetPropertyLinkFlags(
3537 std::string& flags, cmGeneratorTarget const* target,
3538 std::string const& config)
3539{
3540 cmValue targetLinkFlags = target->GetProperty("LINK_FLAGS");
3541 if (targetLinkFlags) {
3542 this->AppendFlags(flags, *targetLinkFlags);
3543 }
3544 if (!config.empty()) {
3545 cmValue targetLinkFlagsConfig = target->GetProperty(
3546 cmStrCat("LINK_FLAGS_", cmSystemTools::UpperCase(config)));
3547 if (targetLinkFlagsConfig) {
3548 this->AppendFlags(flags, *targetLinkFlagsConfig);
3549 }
3550 }
3551}
3552
3553void cmLocalGenerator::AppendIPOLinkerFlags(std::string& flags,
3554 cmGeneratorTarget* target,

Callers 5

GetTargetFlagsMethod · 0.95
CreateBuildSettingsMethod · 0.80
GetTargetLinkFlagsMethod · 0.80
OutputBuildToolMethod · 0.80
ComputeLinkOptionsMethod · 0.80

Calls 4

AppendFlagsMethod · 0.95
cmStrCatFunction · 0.70
GetPropertyMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected