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:
parent
5a836da544
commit
94672aa75a
@ -46,8 +46,8 @@ bool cmMarkAsAdvancedCommand
|
|||||||
manager->GetCacheIterator(variable.c_str());
|
manager->GetCacheIterator(variable.c_str());
|
||||||
if ( it.IsAtEnd() )
|
if ( it.IsAtEnd() )
|
||||||
{
|
{
|
||||||
this->Makefile->AddCacheDefinition(variable.c_str(), 0, 0,
|
this->Makefile->GetCacheManager()
|
||||||
cmCacheManager::UNINITIALIZED);
|
->AddCacheEntry(variable.c_str(), 0, 0, cmCacheManager::UNINITIALIZED);
|
||||||
overwrite = true;
|
overwrite = true;
|
||||||
}
|
}
|
||||||
it.Find(variable.c_str());
|
it.Find(variable.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user