summaryrefslogtreecommitdiff
path: root/Help/prop_dir/SUBDIRECTORIES.rst
blob: 2c2ea773ec7a542f0a8981340eec77dc907f3e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SUBDIRECTORIES
--------------

This read-only directory property contains a
:ref:`;-list <CMake Language Lists>` of subdirectories processed so far by
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.