From 7792b95443633bb9b8a18c09834fdaefbdcbb1c2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 23 Sep 2024 23:10:11 +0200 Subject: [PATCH] Workaround MSVC mutex fubar. --- cmake/config.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/config.cmake b/cmake/config.cmake index 81a77175..36fe3b31 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -26,7 +26,7 @@ else() endif() if(WIN32) - add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN) + add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR) add_compile_options(/MP) else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always")