mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Revert topic 'refactor-cache-api'
This topic was never tested without some follow-up commits. The GetCacheEntryValue API returns a pointer to memory freed on return. It will have to be revised along with the rest of the original topic.
This commit is contained in:
@@ -81,8 +81,8 @@ bool cmLoadCacheCommand
|
||||
{
|
||||
break;
|
||||
}
|
||||
this->Makefile->GetCMakeInstance()->LoadCache(args[i], false,
|
||||
excludes, includes);
|
||||
this->Makefile->GetCacheManager()->LoadCache(args[i], false,
|
||||
excludes, includes);
|
||||
}
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ void cmLoadCacheCommand::CheckLine(const char* line)
|
||||
std::string var;
|
||||
std::string value;
|
||||
cmCacheManager::CacheEntryType type = cmCacheManager::UNINITIALIZED;
|
||||
if(cmake::ParseCacheEntry(line, var, value, type))
|
||||
if(cmCacheManager::ParseEntry(line, var, value, type))
|
||||
{
|
||||
// Found a real entry. See if this one was requested.
|
||||
if(this->VariablesToRead.find(var) != this->VariablesToRead.end())
|
||||
|
||||
Reference in New Issue
Block a user