1<PROJECT-NAME>_IS_TOP_LEVEL 2--------------------------- 3 4.. versionadded:: 3.21 5 6A boolean variable indicating whether the named project was called in a top 7level ``CMakeLists.txt`` file. 8 9To obtain the value from the most recent call to :command:`project` in 10the current directory scope or above, see the 11:variable:`PROJECT_IS_TOP_LEVEL` variable. 12 13The variable value will be true in: 14 15* the top-level directory of the project 16* the top-level directory of an external project added by :module:`ExternalProject` 17 18The variable value will be false in: 19 20* a directory added by :command:`add_subdirectory` 21* a directory added by :module:`FetchContent` 22