cmake-variables(7)

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:

  • begin with CMAKE_ (upper-, lower-, or mixed-case), or

  • begin with _CMAKE_ (upper-, lower-, or mixed-case), or

  • begin with _ followed by the name of any CMake Command.

Variables that Provide Information

Variables that Change Behavior

Variables that Describe the System

Variables that Control the Build