get_cmake_property.rst 722 B

1234567891011121314151617181920
  1. get_cmake_property
  2. ------------------
  3. Get a global property of the CMake instance.
  4. ::
  5. get_cmake_property(VAR property)
  6. Get a global property from the CMake instance. The value of the property is
  7. stored in the variable ``VAR``. If the property is not found, ``VAR``
  8. will be set to "NOTFOUND". See the :manual:`cmake-properties(7)` manual
  9. 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.