diff options
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r-- | Source/cmListFileCache.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index 2e0020d..fcfd75c 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -77,10 +77,15 @@ cmListFile* cmListFileCache::GetFileCache(const char* path) bool cmListFileCache::CacheFile(const char* path) { + if(!cmSystemTools::FileExists(path)) + { + return false; + } + std::ifstream fin(path); if(!fin) { - cmSystemTools::Error("error can not open file ", path); + cmSystemTools::Error("cmListFileCache: error can not open file ", path); return false; } std::string name; |