Skip to content

Commit 3945804

Browse files
committed
cmake: only try to bundle crashpad_handler when building crashpad backend
1 parent d2040b4 commit 3945804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ if (BUILD_SENTRY_PLUGIN)
388388
target_sources(flutterpi_module PRIVATE src/plugins/sentry/sentry.c)
389389
target_link_libraries(flutterpi_module PUBLIC sentry::sentry)
390390

391-
if (SENTRY_PLUGIN_BUNDLE_CRASHPAD_HANDLER)
391+
if (SENTRY_BACKEND STREQUAL "crashpad" AND SENTRY_PLUGIN_BUNDLE_CRASHPAD_HANDLER)
392392
set(HAVE_BUNDLED_CRASHPAD_HANDLER ON)
393393

394394
target_sources(flutter-pi PRIVATE src/crashpad_handler_trampoline.cc)

0 commit comments

Comments
 (0)