1
0
Fork 0

Disable linking to sentry for now, due to a bug

Discovered na upstream issue in sentry-native’s exported CMake targets,
at least on macOS. Disabling until I hear back from them.
This commit is contained in:
James Turner 2020-04-08 16:07:31 +01:00
parent 785436abf4
commit f5b04684cf

View file

@ -110,16 +110,17 @@ else()
endif()
if (TARGET sentry::sentry)
target_link_libraries(fgfs sentry::sentry)
# disabling this for now until Sentry-native fixes their CMake export :)
# target_link_libraries(fgfs sentry::sentry)
endif()
if (TARGET sentry::crashpad)
if (TARGET sentry_crashpad::handler)
if (APPLE)
# install inside the bundle
install(FILES $<TARGET_FILE:sentry::crashpad_handler> DESTINATION fgfs.app/Contents/MacOS OPTIONAL)
install(FILES $<TARGET_FILE:sentry_crashpad::handler> DESTINATION fgfs.app/Contents/MacOS OPTIONAL)
else()
# install in the bin-dir, next to the application binary
install(FILES $<TARGET_FILE:sentry::crashpad_handler> DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
install(FILES $<TARGET_FILE:sentry_crashpad::handler> DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
endif()
endif()