Преглед изворни кода

Checking for a definition is a usage

Ben Boeckel пре 15 година
родитељ
комит
89c25443a6
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      Source/cmMakefile.cxx

+ 1 - 0
Source/cmMakefile.cxx

@@ -2176,6 +2176,7 @@ const char* cmMakefile::GetRequiredDefinition(const char* name) const
 bool cmMakefile::IsDefinitionSet(const char* name) const
 {
   const char* def = this->Internal->VarStack.top().Get(name);
+  this->Internal->VarUsageStack.top().insert(name);
   if(!def)
     {
     def = this->GetCacheManager()->GetCacheValue(name);