summaryrefslogtreecommitdiff
path: root/Help/prop_dir/SUBDIRECTORIES.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/prop_dir/SUBDIRECTORIES.rst')
-rw-r--r--Help/prop_dir/SUBDIRECTORIES.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Help/prop_dir/SUBDIRECTORIES.rst b/Help/prop_dir/SUBDIRECTORIES.rst
new file mode 100644
index 000000000..2c2ea773e
--- /dev/null
+++ b/Help/prop_dir/SUBDIRECTORIES.rst
@@ -0,0 +1,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.