mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Define `PROJECT_IS_TOP_LEVEL` and `<PROJECT-NAME>_IS_TOP_LEVEL`. The latter is a STATIC cache entry just like other `<PROJECT-NAME>_*` variables so that it is globally scoped. Issue: #20310 Fixes: #21961
7 lines
238 B
ReStructuredText
7 lines
238 B
ReStructuredText
project-is-top-level
|
|
--------------------
|
|
|
|
* :command:`project` now sets variables :variable:`PROJECT_IS_TOP_LEVEL` and
|
|
:variable:`<PROJECT-NAME>_IS_TOP_LEVEL` to indicate whether it was called
|
|
in a top level ``CMakeLists.txt`` file.
|