• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1get_test_property
2-----------------
3
4Get a property of the test.
5
6.. code-block:: cmake
7
8  get_test_property(test property VAR)
9
10Get a property from the test.  The value of the property is stored in
11the variable ``VAR``.  If the test property is not found, the behavior
12depends on whether it has been defined to be an ``INHERITED`` property
13or not (see :command:`define_property`).  Non-inherited properties will
14set ``VAR`` to "NOTFOUND", whereas inherited properties will search the
15relevant parent scope as described for the :command:`define_property`
16command and if still unable to find the property, ``VAR`` will be set to
17an empty string.
18
19For a list of standard properties you can type ``cmake --help-property-list``.
20
21See also the more general :command:`get_property` command.
22