get_cmake_property.rst 757 B

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