| 644 | } |
| 645 | |
| 646 | std::string cmExtraCodeLiteGenerator::GetCleanCommand( |
| 647 | cmMakefile const* mf, std::string const& targetName) const |
| 648 | { |
| 649 | std::string generator = mf->GetSafeDefinition("CMAKE_GENERATOR"); |
| 650 | std::ostringstream ss; |
| 651 | std::string buildcommand = this->GetBuildCommand(mf, ""); |
| 652 | if (!targetName.empty() && generator == "Ninja") { |
| 653 | ss << buildcommand << " -t clean " << targetName; |
| 654 | } else { |
| 655 | ss << buildcommand << " clean"; |
| 656 | } |
| 657 | return ss.str(); |
| 658 | } |
| 659 | |
| 660 | std::string cmExtraCodeLiteGenerator::GetRebuildCommand( |
| 661 | cmMakefile const* mf, std::string const& targetName) const |
no test coverage detected