2014-08-03 19:52:23 +02:00
|
|
|
variable_watch
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Watch the CMake variable for change.
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
.. code-block:: cmake
|
2014-08-03 19:52:23 +02:00
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
variable_watch(<variable> [<command>])
|
2014-08-03 19:52:23 +02:00
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
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>)``
|