Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.17.75.8
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : get_test_property.rst
get_test_property
-----------------

Get a property of the test.

.. code-block:: cmake

  get_test_property(test property VAR)

Get a property from the test.  The value of the property is stored in
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
:option:`cmake --help-property-list`.

See Also
^^^^^^^^

* :command:`define_property`
* the more general :command:`get_property` command
© 2025 GrazzMean