Imported Upstream version 3.17.1
[platform/upstream/cmake.git] / Help / variable / CMAKE_DEFAULT_BUILD_TYPE.rst
1 CMAKE_DEFAULT_BUILD_TYPE
2 ------------------------
3
4 Specifies the configuration to use by default in a ``build.ninja`` file in the
5 :generator:`Ninja Multi-Config` generator. If this variable is specified,
6 ``build.ninja`` uses build rules from ``build-<Config>.ninja`` by default. All
7 custom commands are executed with this configuration. If the variable is not
8 specified, the first item from :variable:`CMAKE_CONFIGURATION_TYPES` is used
9 instead.
10
11 The value of this variable must be one of the items from
12 :variable:`CMAKE_CONFIGURATION_TYPES`.