| 2540 | } |
| 2541 | |
| 2542 | void 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 | |
| 2565 | void cmGeneratorTarget::AddCUDAArchitectureFlags(cmBuildStep compileOrLink, |
| 2566 | std::string const& config, |
no test coverage detected