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

Method GetInternalDepfileName

Source/cmCustomCommandGenerator.cxx:452–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452std::string cmCustomCommandGenerator::GetInternalDepfileName(
453 std::string const& /*config*/, std::string const& depfile) const
454{
455 cmCryptoHash hash(cmCryptoHash::AlgoSHA256);
456 std::string extension;
457 switch (*this->LG->GetGlobalGenerator()->DepfileFormat()) {
458 case cmDepfileFormat::GccDepfile:
459 case cmDepfileFormat::MakeDepfile:
460 extension = ".d";
461 break;
462 case cmDepfileFormat::MSBuildAdditionalInputs:
463 extension = ".AdditionalInputs";
464 break;
465 }
466 return cmStrCat(this->LG->GetBinaryDirectory(), "/CMakeFiles/d/",
467 hash.HashString(depfile), extension);
468}
469
470std::string cmCustomCommandGenerator::GetInternalDepfile() const
471{

Callers 1

GetInternalDepfileMethod · 0.95

Calls 4

HashStringMethod · 0.80
cmStrCatFunction · 0.70
DepfileFormatMethod · 0.45
GetGlobalGeneratorMethod · 0.45

Tested by

no test coverage detected