From ee4a12f1ea17eb3d9a5b5ce65dc0542bbdccefe0 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sun, 4 Apr 2021 18:24:02 -0400 Subject: [PATCH] Add crashpad_handler to macOS .app --- hecl-gui/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hecl-gui/CMakeLists.txt b/hecl-gui/CMakeLists.txt index 0cb4ba170..de6112a43 100644 --- a/hecl-gui/CMakeLists.txt +++ b/hecl-gui/CMakeLists.txt @@ -151,6 +151,13 @@ elseif (APPLE) COMMAND ${CMAKE_COMMAND} -E copy $ $ DEPENDS urde hecl visigen ) + if (NOT "${SENTRY_DSN}" STREQUAL "") + add_custom_command( + TARGET hecl-gui POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy $ $ + DEPENDS crashpad_handler + ) + endif() endif () add_subdirectory(platforms/freedesktop)