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

Method GetCleanCommand

Source/cmExtraCodeLiteGenerator.cxx:646–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646std::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
660std::string cmExtraCodeLiteGenerator::GetRebuildCommand(
661 cmMakefile const* mf, std::string const& targetName) const

Callers 2

GetRebuildCommandMethod · 0.95

Calls 3

GetBuildCommandMethod · 0.95
strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected