2023-04-11 03:50:22 +08:00
|
|
|
diff --git a/cmake/opentelemetry-proto.cmake b/cmake/opentelemetry-proto.cmake
|
2023-06-03 02:16:57 +08:00
|
|
|
index 34b33d3..19e67e9 100644
|
2023-04-11 03:50:22 +08:00
|
|
|
--- a/cmake/opentelemetry-proto.cmake
|
|
|
|
+++ b/cmake/opentelemetry-proto.cmake
|
2023-06-03 02:16:57 +08:00
|
|
|
@@ -311,6 +311,10 @@ if(WITH_OTLP_GRPC)
|
|
|
|
endif()
|
2023-04-11 03:50:22 +08:00
|
|
|
endif()
|
2023-06-03 02:16:57 +08:00
|
|
|
|
2023-04-11 03:50:22 +08:00
|
|
|
+if(TARGET gRPC::grpc++)
|
|
|
|
+ target_link_libraries(opentelemetry_proto PUBLIC gRPC::grpc++)
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
if(BUILD_SHARED_LIBS)
|
2023-06-03 02:16:57 +08:00
|
|
|
foreach(proto_target ${OPENTELEMETRY_PROTO_TARGETS})
|
|
|
|
set_property(TARGET ${proto_target} PROPERTY POSITION_INDEPENDENT_CODE ON)
|