| 541 | } |
| 542 | |
| 543 | void 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 | |
| 566 | std::string cmGlobalGhsMultiGenerator::TrimQuotes(std::string str) |
| 567 | { |
no test coverage detected