diff --git a/cmake/modules/CompileWarnings.cmake b/cmake/modules/CompileWarnings.cmake index 5de103201e2..a37cd749c23 100644 --- a/cmake/modules/CompileWarnings.cmake +++ b/cmake/modules/CompileWarnings.cmake @@ -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() diff --git a/vcpkg-configuration.json b/vcpkg-configuration.json index 3806e9932e6..0a4b403bf48 100644 --- a/vcpkg-configuration.json +++ b/vcpkg-configuration.json @@ -1,3 +1,3 @@ { "overlay-triplets": [ "./vcpkg-triplets" ] -} \ No newline at end of file +} diff --git a/vcpkg-triplets/x64-windows-release.cmake b/vcpkg-triplets/x64-windows-release.cmake index 0d1100faf6e..35633589d1b 100644 --- a/vcpkg-triplets/x64-windows-release.cmake +++ b/vcpkg-triplets/x64-windows-release.cmake @@ -2,5 +2,5 @@ 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 "") \ No newline at end of file +set(VCPKG_CXX_FLAGS /D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR) +set(VCPKG_C_FLAGS) \ No newline at end of file