[CXX-2726] Do not override CMAKE_BUILD_TYPE for multi-config generators Created: 03/Aug/23 Updated: 28/Oct/23 Resolved: 07/Aug/23 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.8.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kevin Albertson | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
Scope
BackgroundConfiguring on Windows without specifying CMAKE_BUILD_TYPE results in this log output from CMake:
The log message is printed when overriding CMAKE_BUILD_TYPE. Overriding CMAKE_BUILD_TYPE is ignored for multi-configuration generators:
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. |
| Comments |
| Comment by Githook User [ 05/Oct/23 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
CMAKE_BUILT_TYPE is ignored for multi-config generators like Visual Studio
|
| Comment by Githook User [ 07/Aug/23 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
CMAKE_BUILT_TYPE is ignored for multi-config generators like Visual Studio
|
| Comment by Githook User [ 07/Aug/23 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
CMAKE_BUILT_TYPE is ignored for multi-config generators like Visual Studio
|