mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-20 21:40:15 +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
|
||||
|
||||
this->Internal->VarStack.top().Set(name, value);
|
||||
this->Internal->VarInitStack.top().insert(name);
|
||||
if (this->Internal->VarUsageStack.size() > 1)
|
||||
{
|
||||
this->CheckForUnused("changing definition", name);
|
||||
|
Reference in New Issue
Block a user