• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1get_cmake_property
2------------------
3
4Get a global property of the CMake instance.
5
6.. code-block:: cmake
7
8  get_cmake_property(<var> <property>)
9
10Gets a global property from the CMake instance.  The value of
11the ``<property>`` is stored in the variable ``<var>``.
12If the property is not found, ``<var>`` will be set to ``NOTFOUND``.
13See the :manual:`cmake-properties(7)` manual for available properties.
14
15See also the :command:`get_property` command ``GLOBAL`` option.
16
17In addition to global properties, this command (for historical reasons)
18also supports the :prop_dir:`VARIABLES` and :prop_dir:`MACROS` directory
19properties.  It also supports a special ``COMPONENTS`` global property that
20lists the components given to the :command:`install` command.
21