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()