main
Brett 2025-04-06 22:05:00 -04:00
parent 3cdceda227
commit 2d9b96f115
2 changed files with 2 additions and 23 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake)
set(BLT_VERSION 5.2.37)
set(BLT_VERSION 5.2.38)
set(BLT_TARGET BLT)
@ -12,7 +12,6 @@ option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
option(ENABLE_TSAN "Enable the thread data race sanitizer" OFF)
option(BLT_DEBUG_OTEL "Enable OpenTelemetry Service" OFF)
option(BLT_LOGGING_THREAD_SAFE "Make sure logging is thread synced" ON)
option(BUILD_STD "Build the BLT standard utilities." ON)
@ -33,27 +32,6 @@ option(BLT_DISABLE_WARN "Disable blt::logging BLT_WARN macro" OFF)
option(BLT_DISABLE_ERROR "Disable blt::logging BLT_ERROR macro" OFF)
option(BLT_DISABLE_FATAL "Disable blt::logging BLT_FATAL macro" OFF)
if (BLT_DEBUG_OTEL)
set(BUILD_TESTING OFF)
set(WITH_BENCHMARK OFF)
set(WITH_ABSEIL OFF)
set(WITH_STL ON)
set(WITH_OTLP_FILE ON)
set(WITH_OTLP_HTTP ON)
set(WITH_OTLP_GRPC ON)
include(FetchContent)
FetchContent_Declare(
opentelemetry-cpp
GIT_REPOSITORY https://github.com/open-telemetry/opentelemetry-cpp
GIT_TAG 6175aa0b213eea053247e43b4f35b8d201fa356e # release-1.20.0
)
FetchContent_MakeAvailable(opentelemetry-cpp)
message("Hello ${OPENTELEMETRY_CPP_LIBRARIES}")
message("Hello ${opentelemtry-cpp_INCLUDE_DIRS}")
# include_directories("${opentelemtry-cpp_INCLUDE_DIRS}")
endif ()
if (BLT_LOGGING_THREAD_SAFE)
add_compile_definitions(BLT_LOGGING_THREAD_SAFE)
endif ()

View File

@ -19,6 +19,7 @@
#ifndef BLT_DEFINES_H
#define BLT_DEFINES_H
#if defined(BLT_DEBUG_OTEL) && defined(__has_include) &&__has_include(<opentelemetry/version.h>)
#define BLT_DEBUG_OTEL_ENABLED 1
#endif