summaryrefslogtreecommitdiffstats
path: root/Help/command/variable_watch.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/command/variable_watch.rst')
-rw-r--r--Help/command/variable_watch.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Help/command/variable_watch.rst b/Help/command/variable_watch.rst
new file mode 100644
index 0000000..a2df058
--- /dev/null
+++ b/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>)