From 94672aa75a5b46cfcc3b235fa684d046124b27a3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 10 Apr 2007 15:55:49 -0400 Subject: BUG: When a non-cache variable is marked as advance do not use the cmMakefile implementation of AddCacheDefinition to avoid removing the makefile definition. --- Source/cmMarkAsAdvancedCommand.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmMarkAsAdvancedCommand.cxx b/Source/cmMarkAsAdvancedCommand.cxx index 23d572a..1aed616 100644 --- a/Source/cmMarkAsAdvancedCommand.cxx +++ b/Source/cmMarkAsAdvancedCommand.cxx @@ -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()); -- cgit v0.12