Skip to content

Commit

Permalink
Attempt messing with MSVC flags
Browse files Browse the repository at this point in the history
  • Loading branch information
StardustGogeta committed Jun 7, 2024
1 parent 86e6a66 commit c3204b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
message(STATUS "MSVC detected, adding compile flags")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /DDEBUG")
add_compile_options(/W4 /WX /MP)
add_compile_options(/W4 /WX)
endif()

set(BIN_DIR "${CMAKE_SOURCE_DIR}/bin")
Expand Down
3 changes: 2 additions & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"inherits": "windows-msvc-base",
"description": "Windows release build using MSVC and Visual Studio 2022 generator",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS": "/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR"
}
},
{
Expand Down

0 comments on commit c3204b1

Please sign in to comment.