3488b040aa2d6d44ebe2e9b7e65e0a22fd35aac6
[platform/upstream/cmake.git] / Help / envvar / CMAKE_GENERATOR.rst
1 CMAKE_GENERATOR
2 ---------------
3
4 .. versionadded:: 3.15
5
6 .. include:: ENV_VAR.txt
7
8 Specifies the CMake default generator to use when no generator is supplied
9 with ``-G``. If the provided value doesn't name a generator known by CMake,
10 the internal default is used.  Either way the resulting generator selection
11 is stored in the :variable:`CMAKE_GENERATOR` variable.
12
13 Some generators may be additionally configured using the environment
14 variables:
15
16 * :envvar:`CMAKE_GENERATOR_PLATFORM`
17 * :envvar:`CMAKE_GENERATOR_TOOLSET`
18 * :envvar:`CMAKE_GENERATOR_INSTANCE`