mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Disable problematic MSVC mutex flag temporarily
This commit is contained in:
parent
84a448f495
commit
3263ef8455
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user