-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Scope
- Do not override CMAKE_BUILD_TYPE for multi-config generators
- Document use of --config in Windows installation instructions to choose a build configuration.
Background
Configuring on Windows without specifying CMAKE_BUILD_TYPE results in this log output from CMake:
-- No build type selected, default is Release
The log message is printed when overriding CMAKE_BUILD_TYPE. Overriding CMAKE_BUILD_TYPE is ignored for multi-configuration generators:
For multi-configuration generators like Visual Studio, Xcode, and Ninja Multi-Config, the configuration is chosen by the user at build time and CMAKE_BUILD_TYPE is ignored.
This may mislead users to think the build is Release, when it may be Debug. This may result in confusing runtime errors if mixing Debug and Release builds in an application.
- is related to
-
CXX-2707 mongocxx kvp std::string runtime error in visual studio 2019 release build.
- Closed