mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-21 06:10:16 +08:00
Fix missing case for usage of a variable
This commit is contained in:
@@ -1649,6 +1649,7 @@ void cmMakefile::AddDefinition(const char* name, const char* value)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
this->Internal->VarStack.top().Set(name, value);
|
this->Internal->VarStack.top().Set(name, value);
|
||||||
|
this->Internal->VarInitStack.top().insert(name);
|
||||||
if (this->Internal->VarUsageStack.size() > 1)
|
if (this->Internal->VarUsageStack.size() > 1)
|
||||||
{
|
{
|
||||||
this->CheckForUnused("changing definition", name);
|
this->CheckForUnused("changing definition", name);
|
||||||
|
Reference in New Issue
Block a user