| 21 | #include "cmVersion.h" |
| 22 | |
| 23 | void 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 | |
| 32 | bool cmCacheManager::LoadCache(std::string const& path, bool internal, |
| 33 | std::set<std::string>& excludes, |