2020-05-27 19:11:04 +00:00
|
|
|
set (SENTRY_LIBRARY "sentry")
|
|
|
|
set (SENTRY_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/sentry-native/include")
|
|
|
|
if (NOT EXISTS "${SENTRY_INCLUDE_DIR}/sentry.h")
|
|
|
|
message (WARNING "submodule contrib/sentry-native is missing. to fix try run: \n git submodule update --init --recursive")
|
|
|
|
return()
|
|
|
|
endif ()
|
|
|
|
|
2020-06-02 19:25:34 +00:00
|
|
|
if (NOT OS_FREEBSD AND NOT SPLIT_SHARED_LIBRARIES AND NOT (OS_DARWIN AND COMPILER_CLANG))
|
2020-06-01 16:49:11 +00:00
|
|
|
option (USE_SENTRY "Use Sentry" ON)
|
2020-05-27 19:11:04 +00:00
|
|
|
|
2020-06-02 18:50:55 +00:00
|
|
|
set (SENTRY_TRANSPORT "url")
|
|
|
|
set (SENTRY_BACKEND "none")
|
2020-06-01 16:49:11 +00:00
|
|
|
set (CURL_LIBRARY ${ClickHouse_SOURCE_DIR}/contrib/curl/lib)
|
|
|
|
set (CURL_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/curl/include)
|
2020-06-02 20:50:18 +00:00
|
|
|
if (NOT_UNBUNDLED)
|
|
|
|
set (BUILD_SHARED_LIBS OFF)
|
|
|
|
endif()
|
2020-05-27 19:11:04 +00:00
|
|
|
|
2020-06-01 16:49:11 +00:00
|
|
|
message (STATUS "Using sentry=${USE_SENTRY}: ${SENTRY_LIBRARY}")
|
2020-05-27 19:11:04 +00:00
|
|
|
|
2020-06-01 16:49:11 +00:00
|
|
|
include_directories("${SENTRY_INCLUDE_DIR}")
|
2020-06-02 20:50:18 +00:00
|
|
|
endif ()
|