浏览代码

Fix missing case for usage of a variable

Ben Boeckel 15 年之前
父节点
当前提交
056b44113f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);