SUBDIRECTORIES.rst 615 B

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