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

Method GetCompileTemplateVar

Source/cmNinjaTargetGenerator.cxx:659–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659std::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
672void cmNinjaTargetGenerator::WriteCompileRule(std::string const& lang,
673 std::string const& config,

Callers 2

WriteCompileRuleMethod · 0.95

Calls 7

GetGeneratorTargetMethod · 0.95
GetMakefileMethod · 0.95
moveFunction · 0.85
cmStrCatFunction · 0.70
IsNormalMethod · 0.45
IsEmptyMethod · 0.45
GetDefinitionMethod · 0.45

Tested by

no test coverage detected