CMAKE_BUILD_TYPE ---------------- .. versionadded:: 3.22 .. include:: include/ENV_VAR.rst The ``CMAKE_BUILD_TYPE`` environment variable specifies a default value for the :variable:`CMAKE_BUILD_TYPE` variable when there is no explicit configuration given on the first run while creating a new build tree.