summaryrefslogtreecommitdiffstats
path: root/Source/cmMarkAsAdvancedCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-10 19:55:49 (GMT)
committerBrad King <brad.king@kitware.com>2007-04-10 19:55:49 (GMT)
commit94672aa75a5b46cfcc3b235fa684d046124b27a3 (patch)
treec7d20be03ff2c927dcee4a2d65470f6df5a714d8 /Source/cmMarkAsAdvancedCommand.cxx
parent5a836da54413b9c57a5c46cd6f363b70c6aea00b (diff)
downloadCMake-94672aa75a5b46cfcc3b235fa684d046124b27a3.zip
CMake-94672aa75a5b46cfcc3b235fa684d046124b27a3.tar.gz
CMake-94672aa75a5b46cfcc3b235fa684d046124b27a3.tar.bz2
BUG: When a non-cache variable is marked as advance do not use the cmMakefile implementation of AddCacheDefinition to avoid removing the makefile definition.
Diffstat (limited to 'Source/cmMarkAsAdvancedCommand.cxx')
-rw-r--r--Source/cmMarkAsAdvancedCommand.cxx4
1 files 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());