Imported Upstream version 3.25.0
[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 :option:`-G <cmake -G>`. If the provided value doesn't name a generator
10 known by CMake, the internal default is used.  Either way the resulting
11 generator selection 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`