diff options
Diffstat (limited to 'share/cmake-3.18/Help/command/variable_watch.rst')
-rw-r--r-- | share/cmake-3.18/Help/command/variable_watch.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/share/cmake-3.18/Help/command/variable_watch.rst b/share/cmake-3.18/Help/command/variable_watch.rst new file mode 100644 index 0000000..ce69bcf --- /dev/null +++ b/share/cmake-3.18/Help/command/variable_watch.rst @@ -0,0 +1,15 @@ +variable_watch +-------------- + +Watch the CMake variable for change. + +.. code-block:: cmake + + variable_watch(<variable> [<command>]) + +If the specified ``<variable>`` changes, a message will be printed +to inform about the change. + +Additionally, if ``<command>`` is given, this command will be executed. +The command will receive the following arguments: +``COMMAND(<variable> <access> <value> <current_list_file> <stack>)`` |