summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2011-01-13 22:58:04 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2011-01-13 22:58:04 (GMT)
commit8354413463fd4b13185388f57dc1b2f5cfd8298d (patch)
tree9fe8ed2806b629edf0d9ddea3f4700c2a27361a5 /Source/cmake.cxx
parent8ed3c85c4749274cd30eef808d585634c38f3c72 (diff)
downloadCMake-8354413463fd4b13185388f57dc1b2f5cfd8298d.zip
CMake-8354413463fd4b13185388f57dc1b2f5cfd8298d.tar.gz
CMake-8354413463fd4b13185388f57dc1b2f5cfd8298d.tar.bz2
Add method to unwatch a manual variable
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 548e59a..0d1c4ef 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -4309,6 +4309,14 @@ void cmake::WatchUnusedCli(const char* var)
#endif
}
+void cmake::UnwatchUnusedCli(const char* var)
+{
+#ifdef CMAKE_BUILD_WITH_CMAKE
+ this->VariableWatch->RemoveWatch(var, cmWarnUnusedCliWarning);
+ this->UsedCliVariables[var] = true;
+#endif
+}
+
void cmake::RunCheckForUnusedVariables(const std::string& reason) const
{
#ifdef CMAKE_BUILD_WITH_CMAKE