Commit 4d2e6c83 authored by Jim Miller's avatar Jim Miller
Browse files

FIX: only clear the cache on a load when the load needs to read internal...

FIX: only clear the cache on a load when the load needs to read internal values.  Otherwise, it is assumed that we are reading another projects cache.
parent ad224724
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment