Browse Source

BUG: change in how set cache overrides local definitions. Should mainly be a NOP change for most cases

Ken Martin 18 years ago
parent
commit
f52d37c26f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmMakefile.cxx

+ 2 - 1
Source/cmMakefile.cxx

@@ -1241,7 +1241,8 @@ void cmMakefile::AddCacheDefinition(const char* name, const char* value,
 
     }
   this->GetCacheManager()->AddCacheEntry(name, val, doc, type);
-  this->AddDefinition(name, val);
+  // if there was a definition then remove it
+  this->Definitions.erase( DefinitionMap::key_type(name));
 }