Fix compiling crashpad on Windows

This commit is contained in:
Luke Street 2021-04-05 12:04:19 -04:00
parent aac06c3465
commit fd343eb234
1 changed files with 10 additions and 1 deletions

View File

@ -35,6 +35,15 @@ else()
else ()
set(BREAKPAD_CLIENT "")
endif ()
if (MSVC)
target_compile_options(crashpad_client PRIVATE "/W0")
target_compile_options(crashpad_util PRIVATE "/W0")
target_compile_options(crashpad_snapshot PRIVATE "/W0")
target_compile_options(mini_chromium PRIVATE "/W0")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
target_compile_options(crashpad_zlib PRIVATE "-mpclmul")
endif ()
endif ()
endif ()
target_link_libraries(logvisor PUBLIC fmt ${SENTRY_LIB})