Skip to content

Commit

Permalink
Export ENABLE_LOGS_PREVIEW and ENABLE_METRICS_PREVIEW (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
owent authored Oct 23, 2021
1 parent cfb02da commit 05d43d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ else()
message("Building with nostd types...")
endif()

if(WITH_METRICS_PREVIEW)
target_compile_definitions(opentelemetry_api INTERFACE ENABLE_METRICS_PREVIEW)
endif()

if(WITH_LOGS_PREVIEW)
target_compile_definitions(opentelemetry_api INTERFACE ENABLE_LOGS_PREVIEW)
endif()

if(CORE_RUNTIME_LIBS)
target_link_libraries(opentelemetry_api INTERFACE ${CORE_RUNTIME_LIBS})
endif()

0 comments on commit 05d43d6

Please sign in to comment.