mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-20 21:40:15 +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
|
||||
{
|
||||
const char* def = this->Internal->VarStack.top().Get(name);
|
||||
this->Internal->VarUsageStack.top().insert(name);
|
||||
if(!def)
|
||||
{
|
||||
def = this->GetCacheManager()->GetCacheValue(name);
|
||||
|
Reference in New Issue
Block a user