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

Method AdditionalCleanFiles

Source/cmFastbuildTargetGenerator.cxx:843–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841}
842
843void cmFastbuildTargetGenerator::AdditionalCleanFiles()
844{
845 if (cmValue prop_value =
846 this->GeneratorTarget->GetProperty("ADDITIONAL_CLEAN_FILES")) {
847 auto* lg = this->LocalGenerator;
848 cmList cleanFiles(cmGeneratorExpression::Evaluate(*prop_value, lg, Config,
849 this->GeneratorTarget));
850 std::string const& binaryDir = lg->GetCurrentBinaryDirectory();
851 auto* gg = lg->GetGlobalFastbuildGenerator();
852 for (auto const& cleanFile : cleanFiles) {
853 // Support relative paths
854 gg->AddFileToClean(gg->ConvertToFastbuildPath(
855 cmSystemTools::CollapseFullPath(cleanFile, binaryDir)));
856 }
857 }
858}

Callers

nothing calls this directly

Calls 4

AddFileToCleanMethod · 0.80
GetPropertyMethod · 0.45

Tested by

no test coverage detected