summaryrefslogtreecommitdiff
path: root/share/cmake-3.22/Help/variable/CMAKE_DEFAULT_BUILD_TYPE.rst
blob: cadbf3a135050535862d33db1cc679657cf75c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CMAKE_DEFAULT_BUILD_TYPE
------------------------

.. versionadded:: 3.17

Specifies the configuration to use by default in a ``build.ninja`` file in the
:generator:`Ninja Multi-Config` generator. If this variable is specified,
``build.ninja`` uses build rules from ``build-<Config>.ninja`` by default. All
custom commands are executed with this configuration. If the variable is not
specified, the first item from :variable:`CMAKE_CONFIGURATION_TYPES` is used
instead.

The value of this variable must be one of the items from
:variable:`CMAKE_CONFIGURATION_TYPES`.