cmake/Help/command/get_directory_property.rst

25 lines
733 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
get_directory_property
----------------------
2015-11-17 17:22:37 +01:00
Get a property of ``DIRECTORY`` scope.
2014-08-03 19:52:23 +02:00
::
get_directory_property(<variable> [DIRECTORY <dir>] <prop-name>)
Store a property of directory scope in the named variable. If the
2015-11-17 17:22:37 +01:00
property is not defined the empty-string is returned. The ``DIRECTORY``
2014-08-03 19:52:23 +02:00
argument specifies another directory from which to retrieve the
property value. The specified directory must have already been
traversed by CMake.
::
get_directory_property(<variable> [DIRECTORY <dir>]
DEFINITION <var-name>)
Get a variable definition from a directory. This form is useful to
get a variable definition from another directory.
2015-11-17 17:22:37 +01:00
See also the more general :command:`get_property` command.