mirror of https://github.com/AxioDL/logvisor.git
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)
|
target_compile_definitions(logvisor PUBLIC SENTRY_ENABLED=0)
|
||||||
set(SENTRY_LIB "")
|
set(SENTRY_LIB "")
|
||||||
set(BREAKPAD_CLIENT "")
|
set(BREAKPAD_CLIENT "")
|
||||||
else()
|
else ()
|
||||||
message(STATUS "Enabling Sentry integration")
|
message(STATUS "Enabling Sentry integration")
|
||||||
add_subdirectory(sentry)
|
add_subdirectory(sentry)
|
||||||
target_compile_definitions(logvisor PUBLIC SENTRY_ENABLED=1)
|
target_compile_definitions(logvisor PUBLIC SENTRY_ENABLED=1)
|
||||||
|
@ -35,6 +35,15 @@ else()
|
||||||
else ()
|
else ()
|
||||||
set(BREAKPAD_CLIENT "")
|
set(BREAKPAD_CLIENT "")
|
||||||
endif ()
|
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 ()
|
endif ()
|
||||||
|
|
||||||
target_link_libraries(logvisor PUBLIC fmt ${SENTRY_LIB})
|
target_link_libraries(logvisor PUBLIC fmt ${SENTRY_LIB})
|
||||||
|
|
Loading…
Reference in New Issue