Checking for a definition is a usage

This commit is contained in:
Ben Boeckel 2011-01-03 08:47:04 -05:00
parent 5625dee390
commit 89c25443a6
1 changed files with 1 additions and 0 deletions

View File

@ -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);