Skip to content

Commit

Permalink
add flag to all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Jun 9, 2024
1 parent 5d2dc45 commit ac94893
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions cmake/modules/CompileWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion vcpkg-configuration.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"overlay-triplets": [ "./vcpkg-triplets" ]
}
}
4 changes: 2 additions & 2 deletions vcpkg-triplets/x64-windows-release.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")
set(VCPKG_CXX_FLAGS /D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
set(VCPKG_C_FLAGS)

0 comments on commit ac94893

Please sign in to comment.