VariableWatch is not available when bootstrapping
This commit is contained in:
parent
2e78224509
commit
9efc05722e
|
@ -201,6 +201,7 @@ cmake::cmake()
|
||||||
|
|
||||||
cmake::~cmake()
|
cmake::~cmake()
|
||||||
{
|
{
|
||||||
|
#ifdef CMAKE_BUILD_WITH_CMAKE
|
||||||
if(this->WarnUnusedCli)
|
if(this->WarnUnusedCli)
|
||||||
{
|
{
|
||||||
std::map<std::string, bool>::const_iterator it;
|
std::map<std::string, bool>::const_iterator it;
|
||||||
|
@ -214,6 +215,7 @@ cmake::~cmake()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
delete this->CacheManager;
|
delete this->CacheManager;
|
||||||
delete this->Policies;
|
delete this->Policies;
|
||||||
if (this->GlobalGenerator)
|
if (this->GlobalGenerator)
|
||||||
|
@ -393,8 +395,10 @@ bool cmake::SetCacheArgs(const std::vector<std::string>& args)
|
||||||
"No help, variable specified on the command line.", type);
|
"No help, variable specified on the command line.", type);
|
||||||
if(this->WarnUnusedCli)
|
if(this->WarnUnusedCli)
|
||||||
{
|
{
|
||||||
|
#ifdef CMAKE_BUILD_WITH_CMAKE
|
||||||
this->VariableWatch->AddWatch(var, cmWarnUnusedCliWarning, this);
|
this->VariableWatch->AddWatch(var, cmWarnUnusedCliWarning, this);
|
||||||
this->UsedCliVariables[var] = false;
|
this->UsedCliVariables[var] = false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue