diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-11 21:02:10 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-11 21:02:10 (GMT) |
commit | 789267c94903f23d231e16de6ff50a2926dcf8e4 (patch) | |
tree | 8effdfe67c6a239421ca6977ff21675de2552bff /Source/cmListFileCache.cxx | |
parent | cdc65cfebfc0a2f5b0ecbc0a61d3f14c4989955a (diff) | |
download | CMake-789267c94903f23d231e16de6ff50a2926dcf8e4.zip CMake-789267c94903f23d231e16de6ff50a2926dcf8e4.tar.gz CMake-789267c94903f23d231e16de6ff50a2926dcf8e4.tar.bz2 |
ENH: speed improvements
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; |