master
cmake 28 lines 999 Bytes
Raw
1 # SPDX-License-Identifier: GPL-3.0-or-later
2 # Functions and macros for handling of Sentry
3 #
4 # Handle bundling of Sentry.
5 #
6 # This pulls it in as a sub-project using FetchContent functionality.
7 #
8 # This needs to be a function and not a macro for variable scoping
9 # reasons. All the things we care about from the sub-project are exposed
10 # as targets, which are globally scoped and not function scoped.
11 function(netdata_bundle_sentry)
12 include(FetchContent)
13
14 # ignore debhelper
15 set(FETCHCONTENT_FULLY_DISCONNECTED Off)
16
17 set(SENTRY_VERSION 0.13.5)
18 set(SENTRY_BACKEND "breakpad")
19 set(SENTRY_BUILD_SHARED_LIBS OFF)
20
21 FetchContent_Declare(
22 sentry
23 GIT_REPOSITORY https://github.com/getsentry/sentry-native.git
24 GIT_TAG 6ebd29bd9742fd2f93b6770b5023e31a8efbc10e # v0.13.5
25 CMAKE_ARGS ${NETDATA_CMAKE_PROPAGATE_TOOLCHAIN_ARGS}
26 )
27 FetchContent_MakeAvailable(sentry)
28 endfunction()