Checking for a definition is a usage
This commit is contained in:
parent
5625dee390
commit
89c25443a6
|
@ -2176,6 +2176,7 @@ const char* cmMakefile::GetRequiredDefinition(const char* name) const
|
||||||
bool cmMakefile::IsDefinitionSet(const char* name) const
|
bool cmMakefile::IsDefinitionSet(const char* name) const
|
||||||
{
|
{
|
||||||
const char* def = this->Internal->VarStack.top().Get(name);
|
const char* def = this->Internal->VarStack.top().Get(name);
|
||||||
|
this->Internal->VarUsageStack.top().insert(name);
|
||||||
if(!def)
|
if(!def)
|
||||||
{
|
{
|
||||||
def = this->GetCacheManager()->GetCacheValue(name);
|
def = this->GetCacheManager()->GetCacheValue(name);
|
||||||
|
|
Loading…
Reference in New Issue