CMAKE_DEFAULT_BUILD_TYPE for Visual Studio
The new Ninja multi-config generator supports the CMAKE_DEFAULT_BUILD_TYPE
option, which selects the configuration used when you just run ninja
or cmake --build .
without specifying a specific configuration. It would be useful to be able to use this with other multi-config generators like Visual Studio, especially if it also set the startup configuration akin to VS_STARTUP_PROJECT
.