From 2d9b96f1155427fdcc0491aadce93394503f6d66 Mon Sep 17 00:00:00 2001 From: Brett Date: Sun, 6 Apr 2025 22:05:00 -0400 Subject: [PATCH] silly --- CMakeLists.txt | 24 +----------------------- include/blt/std/defines.h | 1 + 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14b3ec6..b9dbd8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 () diff --git a/include/blt/std/defines.h b/include/blt/std/defines.h index ce31c3f..e7de1f4 100644 --- a/include/blt/std/defines.h +++ b/include/blt/std/defines.h @@ -19,6 +19,7 @@ #ifndef BLT_DEFINES_H #define BLT_DEFINES_H + #if defined(BLT_DEBUG_OTEL) && defined(__has_include) &&__has_include() #define BLT_DEBUG_OTEL_ENABLED 1 #endif