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

Method WriteHighLevelDirectives

Source/cmGlobalGhsMultiGenerator.cxx:543–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543void cmGlobalGhsMultiGenerator::WriteHighLevelDirectives(
544 std::ostream& fout, cmLocalGenerator* root)
545{
546 /* put primary target and customization files into project file */
547 cmValue const tgt = root->GetMakefile()->GetDefinition("GHS_PRIMARY_TARGET");
548
549 /* clang-format off */
550 fout << "primaryTarget=" << tgt << "\n"
551 "customization=" << root->GetBinaryDirectory()
552 << "/CMakeFiles/custom_rule.bod\n"
553 "customization=" << root->GetBinaryDirectory()
554 << "/CMakeFiles/custom_target.bod" << '\n';
555 /* clang-format on */
556
557 cmValue const customization =
558 root->GetMakefile()->GetDefinition("GHS_CUSTOMIZATION");
559 if (cmNonempty(customization)) {
560 fout << "customization="
561 << cmGlobalGhsMultiGenerator::TrimQuotes(*customization) << '\n';
562 this->GetCMakeInstance()->MarkCliAsUsed("GHS_CUSTOMIZATION");
563 }
564}
565
566std::string cmGlobalGhsMultiGenerator::TrimQuotes(std::string str)
567{

Callers 1

WriteTopLevelProjectMethod · 0.95

Calls 5

cmNonemptyFunction · 0.85
MarkCliAsUsedMethod · 0.80
GetDefinitionMethod · 0.45
GetMakefileMethod · 0.45
GetCMakeInstanceMethod · 0.45

Tested by

no test coverage detected