From 3263ef84553e02ed0c2b76bbae765dbc866812f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Sun, 9 Jun 2024 21:44:40 +0200 Subject: [PATCH] Disable problematic MSVC mutex flag temporarily --- cmake/Macros.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 919b6d4f4..89447491e 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -31,6 +31,12 @@ function(sfml_set_stdlib target) if(SFML_USE_STATIC_STD_LIBS) set_property(TARGET ${target} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") endif() + + # Workaround for runtime issue on Windows: https://github.com/actions/runner-images/issues/10004 + target_compile_definitions(${target} PRIVATE _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR) + elseif(SFML_COMPILER_CLANG AND NOT MINGW) + # Workaround for runtime issue on Windows: https://github.com/actions/runner-images/issues/10004 + target_compile_definitions(${target} PRIVATE _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR) endif() endif() endfunction()