We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65e864b commit 13c966bCopy full SHA for 13c966b
CMakeLists.txt
@@ -306,6 +306,10 @@ elseif(MSVC)
306
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
307
message(STATUS "Building with static CRT.")
308
endif()
309
+ # Workaround: When building on VS 2022 17.10 or newer, but using an older runtime,
310
+ # mutexes can crash
311
+ # https://stackoverflow.com/questions/78598141/first-stdmutexlock-crashes-in-application-built-with-latest-visual-studio
312
+ add_definitions(-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
313
314
if(CLANG) # clang all platforms
315
set(CMAKE_CXX_FLAGS_RELEASE
0 commit comments