From 8961424c23c2ba98eaecbee526e0b729aabea1b2 Mon Sep 17 00:00:00 2001 From: Mischan Toosarani-Hausberger Date: Tue, 12 Nov 2024 11:37:26 +0100 Subject: [PATCH] feat: Windows binary versioning for handler and WER module (#110) --- handler/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/handler/CMakeLists.txt b/handler/CMakeLists.txt index 55d2e4a97..b7ba49ec2 100644 --- a/handler/CMakeLists.txt +++ b/handler/CMakeLists.txt @@ -113,6 +113,10 @@ if(NOT IOS) if(MSVC) target_link_options(crashpad_handler PRIVATE "/SUBSYSTEM:WINDOWS") endif() + + if (COMMAND sentry_add_version_resource) + sentry_add_version_resource(crashpad_handler "Crashpad Handler") + endif() endif() set_property(TARGET crashpad_handler PROPERTY EXPORT_NAME crashpad_handler) @@ -144,6 +148,10 @@ if (WIN32) set_property(TARGET crashpad_wer PROPERTY PREFIX "") # ensure MINGW doesn't prefix "lib" to dll name add_library(crashpad::wer ALIAS crashpad_wer) + if (COMMAND sentry_add_version_resource) + sentry_add_version_resource(crashpad_wer "Crashpad WER Module") + endif() + install(TARGETS crashpad_wer EXPORT crashpad_export RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" )