Added in version v21.06.00.

Establish the CMAKE_BUILD_TYPE default value.


If the generator is Ninja or Makefile the CMAKE_BUILD_TYPE variable will be established if not explicitly set by the user either by the env variable CMAKE_BUILD_TYPE or by passing -DCMAKE_BUILD_TYPE=. This removes situations where the No-Config / Empty build type is used.


The default build type to use if one doesn’t already exist

Result Variables

CMAKE_BUILD_TYPE will be set to default_type if not already set