2014-08-03 19:52:23 +02:00
|
|
|
get_test_property
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Get a property of the test.
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
.. code-block:: cmake
|
2014-08-03 19:52:23 +02:00
|
|
|
|
|
|
|
get_test_property(test property VAR)
|
|
|
|
|
2015-04-27 22:25:09 +02:00
|
|
|
Get a property from the test. The value of the property is stored in
|
2018-08-09 18:06:22 +02:00
|
|
|
the variable ``VAR``. If the test property is not found, the behavior
|
|
|
|
depends on whether it has been defined to be an ``INHERITED`` property
|
|
|
|
or not (see :command:`define_property`). Non-inherited properties will
|
|
|
|
set ``VAR`` to "NOTFOUND", whereas inherited properties will search the
|
|
|
|
relevant parent scope as described for the :command:`define_property`
|
|
|
|
command and if still unable to find the property, ``VAR`` will be set to
|
|
|
|
an empty string.
|
|
|
|
|
|
|
|
For a list of standard properties you can type ``cmake --help-property-list``.
|
2014-08-03 19:52:23 +02:00
|
|
|
|
2015-11-17 17:22:37 +01:00
|
|
|
See also the more general :command:`get_property` command.
|