Przeglądaj źródła

Fix missing case for usage of a variable

Ben Boeckel 15 lat temu
rodzic
commit
056b44113f
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      Source/cmMakefile.cxx

+ 1 - 0
Source/cmMakefile.cxx

@@ -1649,6 +1649,7 @@ void cmMakefile::AddDefinition(const char* name, const char* value)
 #endif
 
   this->Internal->VarStack.top().Set(name, value);
+  this->Internal->VarInitStack.top().insert(name);
   if (this->Internal->VarUsageStack.size() > 1)
     {
     this->CheckForUnused("changing definition", name);