summaryrefslogtreecommitdiff
path: root/Help/command/variable_watch.rst
blob: a2df058eb3abbd4d601655e02fc9830a6c1f278f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>)