mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'doctop' into release-3.24
75aedb1204 Help: Clarify PROJECT_IS_TOP_LEVEL behavior w.r.t. add_subdirectory
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7362
This commit is contained in:
@@ -13,9 +13,16 @@ the current directory scope or above, see the
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user