This page documents variables that are provided by CMake or have meaning to CMake when set by project code.
For general information on variables, see the Variables section in the cmake-language manual.
Note
CMake reserves identifiers that:
CMAKE_
(upper-, lower-, or mixed-case), or_CMAKE_
(upper-, lower-, or mixed-case), or_
followed by the name of any CMake Command
.CMake has many internal variables. Most of them are undocumented. Some of them, however, were at some point described as normal variables, and therefore may be encountered in legacy code. They are subject to change, and not recommended for use in project code.
© 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.19/manual/cmake-variables.7.html