summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-09-02 13:10:52 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-02 13:10:52 (GMT)
commit9efc05722e9598b8e34062e8f39457b728b7286b (patch)
tree2058cf7cde69ba84f6025175188ed88cddc5bee7
parent2e78224509d6d0bbb7fdf28841f40a6b41c565b3 (diff)
downloadCMake-9efc05722e9598b8e34062e8f39457b728b7286b.zip
CMake-9efc05722e9598b8e34062e8f39457b728b7286b.tar.gz
CMake-9efc05722e9598b8e34062e8f39457b728b7286b.tar.bz2
VariableWatch is not available when bootstrapping
-rw-r--r--Source/cmake.cxx4
1 files changed, 4 insertions, 0 deletions
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<std::string, bool>::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<std::string>& 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