diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2011-01-13 22:58:04 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2011-01-13 22:58:04 (GMT) |
commit | 8354413463fd4b13185388f57dc1b2f5cfd8298d (patch) | |
tree | 9fe8ed2806b629edf0d9ddea3f4700c2a27361a5 /Source/cmake.cxx | |
parent | 8ed3c85c4749274cd30eef808d585634c38f3c72 (diff) | |
download | CMake-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.cxx | 8 |
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 |