From f52d37c26f5fd48cc745b85c3233848d7b664368 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 15 Mar 2007 13:48:15 -0400 Subject: [PATCH] BUG: change in how set cache overrides local definitions. Should mainly be a NOP change for most cases --- Source/cmMakefile.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 16795687f..78b44a407 100644 --- a/Source/cmMakefile.cxx +++ b/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)); }