https://github.com/Kitware/CMake
Raw File
Tip revision: 7f1569d2d8c1a647cf4d1b0696834952cf8f00fb authored by Brad King on 09 July 2018, 12:06:27 UTC
CMake 3.12.0-rc3
Tip revision: 7f1569d
SUBDIRECTORIES.rst
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.
back to top