Browse Source

Checking for a definition is a usage

Ben Boeckel 15 years ago
parent
commit
89c25443a6
1 changed files with 1 additions and 0 deletions
  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);