[ci] Disable std::mutex constexpr constructor on Windows (#6725)

Fixes cmake builds, works around issue with windows runners.

Revert when GitHub runner images are fixed.
This commit is contained in:
Ryan Blue
2024-06-09 09:36:29 -04:00
committed by GitHub
parent b0cc84a9c7
commit 3617a95260
3 changed files with 14 additions and 0 deletions

View File

@@ -53,4 +53,9 @@ macro(wpilib_target_warnings target)
)
target_compile_options(${target} PRIVATE -gz=zlib)
endif()
# Disable std::mutex constexpr constructor on MSCV; Workaround for MSVCP redist mismatch on GHA
if(MSVC)
target_compile_options(${target} PRIVATE /D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
endif()
endmacro()