BUG: When a non-cache variable is marked as advance do not use the cmMakefile implementation of AddCacheDefinition to avoid removing the makefile definition.

This commit is contained in:
Brad King 2007-04-10 15:55:49 -04:00
parent 5a836da544
commit 94672aa75a
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ bool cmMarkAsAdvancedCommand
manager->GetCacheIterator(variable.c_str());
if ( it.IsAtEnd() )
{
this->Makefile->AddCacheDefinition(variable.c_str(), 0, 0,
cmCacheManager::UNINITIALIZED);
this->Makefile->GetCacheManager()
->AddCacheEntry(variable.c_str(), 0, 0, cmCacheManager::UNINITIALIZED);
overwrite = true;
}
it.Find(variable.c_str());