[cmake-commits] king committed cmMarkAsAdvancedCommand.cxx 1.12 1.13
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Apr 10 15:55:51 EDT 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv9870
Modified Files:
cmMarkAsAdvancedCommand.cxx
Log Message:
BUG: When a non-cache variable is marked as advance do not use the cmMakefile implementation of AddCacheDefinition to avoid removing the makefile definition.
Index: cmMarkAsAdvancedCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMarkAsAdvancedCommand.cxx,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- cmMarkAsAdvancedCommand.cxx 12 May 2006 16:29:09 -0000 1.12
+++ cmMarkAsAdvancedCommand.cxx 10 Apr 2007 19:55:49 -0000 1.13
@@ -46,8 +46,8 @@
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());
More information about the Cmake-commits
mailing list