summaryrefslogtreecommitdiffstats
path: root/Help/variable/PROJECT_IS_TOP_LEVEL.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/variable/PROJECT_IS_TOP_LEVEL.rst')
-rw-r--r--Help/variable/PROJECT_IS_TOP_LEVEL.rst13
1 files changed, 10 insertions, 3 deletions
diff --git a/Help/variable/PROJECT_IS_TOP_LEVEL.rst b/Help/variable/PROJECT_IS_TOP_LEVEL.rst
index 7e40704..871dfdb 100644
--- a/Help/variable/PROJECT_IS_TOP_LEVEL.rst
+++ b/Help/variable/PROJECT_IS_TOP_LEVEL.rst
@@ -24,9 +24,16 @@ options:
The variable value will be true in:
* the top-level directory of the project
-* the top-level directory of an external project added by :module:`ExternalProject`
+* the top-level directory of an external project added by
+ :module:`ExternalProject`
+* a directory added by :command:`add_subdirectory` that does not also contain
+ a :command:`project` call
+* a directory added by :command:`FetchContent_MakeAvailable`,
+ if the fetched content does not contain a :command:`project` call
The variable value will be false in:
-* a directory added by :command:`add_subdirectory`
-* a directory added by :module:`FetchContent`
+* a directory added by :command:`add_subdirectory` that also contains
+ a :command:`project` call
+* a directory added by :command:`FetchContent_MakeAvailable`,
+ if the fetched content contains a :command:`project` call