Skip to content

Commit 41538b0

Browse files
authored
[BUILD] Version opentelemetry_proto/proto_grpc shared libraries (open-telemetry#2992)
1 parent cc60934 commit 41538b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/opentelemetry-proto.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ add_library(
325325
${TRACE_SERVICE_PB_CPP_FILE}
326326
${LOGS_SERVICE_PB_CPP_FILE}
327327
${METRICS_SERVICE_PB_CPP_FILE})
328+
set_target_version(opentelemetry_proto)
328329

329330
# Disable include-what-you-use on generated code.
330331
set_target_properties(
@@ -341,6 +342,7 @@ if(WITH_OTLP_GRPC)
341342
opentelemetry_proto_grpc
342343
${OTELCPP_PROTO_TARGET_OPTIONS} ${TRACE_SERVICE_GRPC_PB_CPP_FILE}
343344
${LOGS_SERVICE_GRPC_PB_CPP_FILE} ${METRICS_SERVICE_GRPC_PB_CPP_FILE})
345+
set_target_version(opentelemetry_proto_grpc)
344346

345347
list(APPEND OPENTELEMETRY_PROTO_TARGETS opentelemetry_proto_grpc)
346348
target_link_libraries(opentelemetry_proto_grpc PUBLIC opentelemetry_proto)

0 commit comments

Comments
 (0)