get_directory_property.rst 733 B

123456789101112131415161718192021222324
  1. get_directory_property
  2. ----------------------
  3. Get a property of ``DIRECTORY`` scope.
  4. ::
  5. get_directory_property(<variable> [DIRECTORY <dir>] <prop-name>)
  6. Store a property of directory scope in the named variable. If the
  7. property is not defined the empty-string is returned. The ``DIRECTORY``
  8. argument specifies another directory from which to retrieve the
  9. property value. The specified directory must have already been
  10. traversed by CMake.
  11. ::
  12. get_directory_property(<variable> [DIRECTORY <dir>]
  13. DEFINITION <var-name>)
  14. Get a variable definition from a directory. This form is useful to
  15. get a variable definition from another directory.
  16. See also the more general :command:`get_property` command.