mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
Add API for cache loading, deleting and saving to the cmake class.
Migrate existing users of the CacheManager API to use the new API. The CacheManager will be going away soon.
This commit is contained in:
@@ -81,8 +81,8 @@ bool cmLoadCacheCommand
|
||||
{
|
||||
break;
|
||||
}
|
||||
this->Makefile->GetCacheManager()->LoadCache(args[i], false,
|
||||
excludes, includes);
|
||||
this->Makefile->GetCMakeInstance()->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(cmCacheManager::ParseEntry(line, var, value, type))
|
||||
if(cmake::ParseCacheEntry(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