| 657 | } |
| 658 | |
| 659 | std::string cmNinjaTargetGenerator::GetCompileTemplateVar( |
| 660 | std::string const& lang) const |
| 661 | { |
| 662 | std::string cmdVar = cmStrCat("CMAKE_", lang, "_COMPILE_OBJECT"); |
| 663 | if (!this->GetGeneratorTarget()->IsNormal()) { |
| 664 | std::string bmiCmdVar = cmStrCat("CMAKE_", lang, "_COMPILE_BMI"); |
| 665 | if (!this->GetMakefile()->GetDefinition(bmiCmdVar).IsEmpty()) { |
| 666 | cmdVar = std::move(bmiCmdVar); |
| 667 | } |
| 668 | } |
| 669 | return cmdVar; |
| 670 | } |
| 671 | |
| 672 | void cmNinjaTargetGenerator::WriteCompileRule(std::string const& lang, |
| 673 | std::string const& config, |
no test coverage detected