diff options
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 818f260..224ca77 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -97,8 +97,11 @@ bool cmCacheManager::LoadCache(const char* path, { std::string cacheFile = path; cacheFile += "/CMakeCache.txt"; - // clear the old cache - m_Cache.clear(); + // clear the old cache, if we are reading in internal values + if ( internal ) + { + m_Cache.clear(); + } std::ifstream fin(cacheFile.c_str()); if(!fin) { |