mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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()
|
||||
|
||||
3
vcpkg-configuration.json
Normal file
3
vcpkg-configuration.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"overlay-triplets": [ "./vcpkg-triplets" ]
|
||||
}
|
||||
6
vcpkg-triplets/x64-windows-release.cmake
Normal file
6
vcpkg-triplets/x64-windows-release.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
set(VCPKG_TARGET_ARCHITECTURE x64)
|
||||
set(VCPKG_CRT_LINKAGE dynamic)
|
||||
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
||||
set(VCPKG_BUILD_TYPE release)
|
||||
set(VCPKG_CXX_FLAGS "/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR")
|
||||
set(VCPKG_C_FLAGS "")
|
||||
Reference in New Issue
Block a user