mirror of
https://github.com/AxioDL/logvisor.git
synced 2025-06-05 22:23:41 +00:00
Fix compiling crashpad on Windows
This commit is contained in:
parent
aac06c3465
commit
fd343eb234
@ -20,7 +20,7 @@ if ("${SENTRY_DSN}" STREQUAL "")
|
||||
target_compile_definitions(logvisor PUBLIC SENTRY_ENABLED=0)
|
||||
set(SENTRY_LIB "")
|
||||
set(BREAKPAD_CLIENT "")
|
||||
else()
|
||||
else ()
|
||||
message(STATUS "Enabling Sentry integration")
|
||||
add_subdirectory(sentry)
|
||||
target_compile_definitions(logvisor PUBLIC SENTRY_ENABLED=1)
|
||||
@ -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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user