summaryrefslogtreecommitdiff
path: root/share/cmake-3.10/Help/command/variable_watch.rst
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.10/Help/command/variable_watch.rst')
-rw-r--r--share/cmake-3.10/Help/command/variable_watch.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/share/cmake-3.10/Help/command/variable_watch.rst b/share/cmake-3.10/Help/command/variable_watch.rst
new file mode 100644
index 0000000..a2df058
--- /dev/null
+++ b/share/cmake-3.10/Help/command/variable_watch.rst
@@ -0,0 +1,13 @@
+variable_watch
+--------------
+
+Watch the CMake variable for change.
+
+::
+
+ variable_watch(<variable name> [<command to execute>])
+
+If the specified variable changes, the message will be printed about
+the variable being changed. If the command is specified, the command
+will be executed. The command will receive the following arguments:
+COMMAND(<variable> <access> <value> <current list file> <stack>)