mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 15:32:10 +08:00
cmCacheManager: Port consumers to non-iterator API.
This simplifies reasoning about the follow-up commit which ports away from cmCacheManager to a class with the same method names.
This commit is contained in:
@@ -41,9 +41,9 @@ bool cmVariableRequiresCommand
|
||||
requirementsMet = false;
|
||||
notSet += args[i];
|
||||
notSet += "\n";
|
||||
cmCacheManager::CacheIterator it =
|
||||
this->Makefile->GetCacheManager()->GetCacheIterator(args[i].c_str());
|
||||
if(!it.IsAtEnd() && it.GetPropertyAsBool("ADVANCED"))
|
||||
cmCacheManager* manager = this->Makefile->GetCacheManager();
|
||||
if(manager->GetCacheEntryValue(args[i]) &&
|
||||
manager->GetCacheEntryPropertyAsBool(args[i], "ADVANCED"))
|
||||
{
|
||||
hasAdvanced = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user