cmake/Help/prop_dir/SUBDIRECTORIES.rst

18 lines
656 B
ReStructuredText
Raw Normal View History

2016-10-30 18:24:19 +01:00
SUBDIRECTORIES
--------------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.7
2016-10-30 18:24:19 +01:00
This read-only directory property contains a
2019-11-11 23:01:05 +01:00
:ref:`semicolon-separated list <CMake Language Lists>` of subdirectories processed so far by
2016-10-30 18:24:19 +01:00
the :command:`add_subdirectory` or :command:`subdirs` commands. Each entry is
the absolute path to the source directory (containing the ``CMakeLists.txt``
file). This is suitable to pass to the :command:`get_property` command
``DIRECTORY`` option.
.. note::
The :command:`subdirs` command does not process its arguments until
after the calling directory is fully processed. Therefore looking
up this property in the current directory will not see them.