From 9efc05722e9598b8e34062e8f39457b728b7286b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 2 Sep 2010 09:10:52 -0400 Subject: VariableWatch is not available when bootstrapping --- Source/cmake.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index d4cabdb..cb70f1f 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -201,6 +201,7 @@ cmake::cmake() cmake::~cmake() { +#ifdef CMAKE_BUILD_WITH_CMAKE if(this->WarnUnusedCli) { std::map::const_iterator it; @@ -214,6 +215,7 @@ cmake::~cmake() } } } +#endif delete this->CacheManager; delete this->Policies; if (this->GlobalGenerator) @@ -393,8 +395,10 @@ bool cmake::SetCacheArgs(const std::vector& args) "No help, variable specified on the command line.", type); if(this->WarnUnusedCli) { +#ifdef CMAKE_BUILD_WITH_CMAKE this->VariableWatch->AddWatch(var, cmWarnUnusedCliWarning, this); this->UsedCliVariables[var] = false; +#endif } } else -- cgit v0.12