cmake/Help/command/get_test_property.rst

27 lines
831 B
ReStructuredText
Raw Normal View History

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.
2022-11-16 20:14:03 +01:00
For a list of standard properties you can type
:option:`cmake --help-property-list`.
2014-08-03 19:52:23 +02:00
2023-05-23 16:38:00 +02:00
See Also
^^^^^^^^
* :command:`define_property`
* the more general :command:`get_property` command