Disable problematic MSVC mutex flag temporarily

This commit is contained in:
Lukas Dürrenberger 2024-06-09 21:44:40 +02:00 committed by Chris Thrasher
parent 84a448f495
commit 3263ef8455

View File

@ -31,6 +31,12 @@ function(sfml_set_stdlib target)
if(SFML_USE_STATIC_STD_LIBS) if(SFML_USE_STATIC_STD_LIBS)
set_property(TARGET ${target} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") set_property(TARGET ${target} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif() 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()
endif() endif()
endfunction() endfunction()