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

Method CleanCMakeFiles

Source/cmCacheManager.cxx:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "cmVersion.h"
22
23void cmCacheManager::CleanCMakeFiles(std::string const& path)
24{
25 std::string glob = cmStrCat(path, "/CMakeFiles/*.cmake");
26 cmsys::Glob globIt;
27 globIt.FindFiles(glob);
28 std::vector<std::string> files = globIt.GetFiles();
29 std::for_each(files.begin(), files.end(), cmSystemTools::RemoveFile);
30}
31
32bool cmCacheManager::LoadCache(std::string const& path, bool internal,
33 std::set<std::string>& excludes,

Callers 1

LoadCacheMethod · 0.95

Calls 5

FindFilesMethod · 0.80
cmStrCatFunction · 0.70
GetFilesMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected