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

Method AddExplicitLanguageFlags

Source/cmGeneratorTarget.cxx:2542–2563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2540}
2541
2542void cmGeneratorTarget::AddExplicitLanguageFlags(std::string& flags,
2543 cmSourceFile const& sf) const
2544{
2545 cmValue lang = sf.GetProperty("LANGUAGE");
2546 if (!lang) {
2547 return;
2548 }
2549
2550 switch (this->GetPolicyStatusCMP0119()) {
2551 case cmPolicies::WARN:
2552 CM_FALLTHROUGH;
2553 case cmPolicies::OLD:
2554 // The OLD behavior is to not add explicit language flags.
2555 return;
2556 case cmPolicies::NEW:
2557 // The NEW behavior is to add explicit language flags.
2558 break;
2559 }
2560
2561 this->LocalGenerator->AppendFeatureOptions(flags, *lang,
2562 "EXPLICIT_LANGUAGE");
2563}
2564
2565void cmGeneratorTarget::AddCUDAArchitectureFlags(cmBuildStep compileOrLink,
2566 std::string const& config,

Callers 6

CreateXCodeSourceFileMethod · 0.80
WriteObjectRuleFilesMethod · 0.80
ComputeFlagsForObjectMethod · 0.80
ComputeFlagsForObjectMethod · 0.80
DetectCompilerFlagsMethod · 0.80

Calls 2

AppendFeatureOptionsMethod · 0.80
GetPropertyMethod · 0.45

Tested by

no test coverage detected