Files
CMake/Help/release/dev/project-is-top-level.rst
friendlyanon 96a7040107 project: Define variables indicating whether project is top level
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
2021-03-26 09:35:34 -04:00

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.