From 41538b0525963031747d61c7775e1246231c7049 Mon Sep 17 00:00:00 2001 From: Troels Hoffmeyer Date: Fri, 9 Aug 2024 13:38:17 +0200 Subject: [PATCH] [BUILD] Version opentelemetry_proto/proto_grpc shared libraries (#2992) --- cmake/opentelemetry-proto.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/opentelemetry-proto.cmake b/cmake/opentelemetry-proto.cmake index 498a7e5681..fa6e185c13 100644 --- a/cmake/opentelemetry-proto.cmake +++ b/cmake/opentelemetry-proto.cmake @@ -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( @@ -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)