From b5a96716eb38e5859f10947e3d61bb4a8c0dffc0 Mon Sep 17 00:00:00 2001 From: Craig Scott <craig.scott@crascit.com> Date: Sun, 18 Jul 2021 16:45:20 +1000 Subject: [PATCH] Help: Clarify which project() call PROJECT_IS_TOP_LEVEL is for --- Help/variable/PROJECT_IS_TOP_LEVEL.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Help/variable/PROJECT_IS_TOP_LEVEL.rst b/Help/variable/PROJECT_IS_TOP_LEVEL.rst index ad61fecc059..7e407045a5c 100644 --- a/Help/variable/PROJECT_IS_TOP_LEVEL.rst +++ b/Help/variable/PROJECT_IS_TOP_LEVEL.rst @@ -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 -- GitLab