diff options
author | Brad King <brad.king@kitware.com> | 2007-04-10 15:55:49 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-04-10 15:55:49 -0400 |
commit | 94672aa75a5b46cfcc3b235fa684d046124b27a3 (patch) | |
tree | c7d20be03ff2c927dcee4a2d65470f6df5a714d8 /Source/cmMarkAsAdvancedCommand.cxx | |
parent | 5a836da54413b9c57a5c46cd6f363b70c6aea00b (diff) | |
download | cmake-94672aa75a5b46cfcc3b235fa684d046124b27a3.tar.gz |
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.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMarkAsAdvancedCommand.cxx b/Source/cmMarkAsAdvancedCommand.cxx index 23d572a9cd..1aed61698a 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()); |