mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-21 06:10:16 +08:00
Checking for a definition is a usage
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user