1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-23 00:48:55 +08:00

Help: Clarify which project() call PROJECT_IS_TOP_LEVEL is for

This commit is contained in:
Craig Scott
2021-07-18 16:45:20 +10:00
parent 8be7694d97
commit b5a96716eb

View File

@@ -3,7 +3,8 @@ PROJECT_IS_TOP_LEVEL
.. versionadded:: 3.21
A boolean variable indicating whether :command:`project` was called in a top
A boolean variable indicating whether the most recently called
:command:`project` command in the current scope or above was in the top
level ``CMakeLists.txt`` file.
Some modules should only be included as part of the top level