Skip to content

Commit

Permalink
[BUILD] Version opentelemetry_proto/proto_grpc shared libraries (#2992)
Browse files Browse the repository at this point in the history
  • Loading branch information
Troels51 authored Aug 9, 2024
1 parent cc60934 commit 41538b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/opentelemetry-proto.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ add_library(
${TRACE_SERVICE_PB_CPP_FILE}
${LOGS_SERVICE_PB_CPP_FILE}
${METRICS_SERVICE_PB_CPP_FILE})
set_target_version(opentelemetry_proto)

# Disable include-what-you-use on generated code.
set_target_properties(
Expand All @@ -341,6 +342,7 @@ if(WITH_OTLP_GRPC)
opentelemetry_proto_grpc
${OTELCPP_PROTO_TARGET_OPTIONS} ${TRACE_SERVICE_GRPC_PB_CPP_FILE}
${LOGS_SERVICE_GRPC_PB_CPP_FILE} ${METRICS_SERVICE_GRPC_PB_CPP_FILE})
set_target_version(opentelemetry_proto_grpc)

list(APPEND OPENTELEMETRY_PROTO_TARGETS opentelemetry_proto_grpc)
target_link_libraries(opentelemetry_proto_grpc PUBLIC opentelemetry_proto)
Expand Down

0 comments on commit 41538b0

Please sign in to comment.