SUBDIRECTORIES.rst 656 B

1234567891011121314151617
  1. SUBDIRECTORIES
  2. --------------
  3. .. versionadded:: 3.7
  4. This read-only directory property contains a
  5. :ref:`semicolon-separated list <CMake Language Lists>` of subdirectories processed so far by
  6. the :command:`add_subdirectory` or :command:`subdirs` commands. Each entry is
  7. the absolute path to the source directory (containing the ``CMakeLists.txt``
  8. file). This is suitable to pass to the :command:`get_property` command
  9. ``DIRECTORY`` option.
  10. .. note::
  11. The :command:`subdirs` command does not process its arguments until
  12. after the calling directory is fully processed. Therefore looking
  13. up this property in the current directory will not see them.