summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
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