Skip to content

Commit cb88400

Browse files
committed
Passthrough lingking of opentelemetry_proto
1 parent c9e6d27 commit cb88400

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

exporters/otlp/CMakeLists.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,12 @@ if(WITH_OTLP_HTTP)
250250

251251
target_link_libraries(
252252
opentelemetry_exporter_otlp_http_client
253-
PUBLIC opentelemetry_sdk opentelemetry_ext
254-
# Links flags of opentelemetry_http_client_curl should be public when
255-
# building internal components
256-
PRIVATE opentelemetry_proto
253+
PUBLIC opentelemetry_sdk
254+
opentelemetry_ext
255+
# Links flags of opentelemetry_http_client_curl should be public when
256+
# building internal components
257+
"$<BUILD_INTERFACE:opentelemetry_proto>"
258+
PRIVATE "$<INSTALL_INTERFACE:opentelemetry_proto>"
257259
"$<BUILD_INTERFACE:opentelemetry_http_client_curl>"
258260
"$<BUILD_INTERFACE:nlohmann_json::nlohmann_json>"
259261
"$<INSTALL_INTERFACE:opentelemetry_http_client_curl>")
@@ -409,7 +411,9 @@ if(WITH_OTLP_FILE)
409411
target_link_libraries(
410412
opentelemetry_exporter_otlp_file_client
411413
PUBLIC opentelemetry_sdk opentelemetry_common
412-
PRIVATE opentelemetry_proto $<BUILD_INTERFACE:nlohmann_json::nlohmann_json>)
414+
"$<BUILD_INTERFACE:opentelemetry_proto>"
415+
PRIVATE "$<INSTALL_INTERFACE:opentelemetry_proto>"
416+
"$<BUILD_INTERFACE:nlohmann_json::nlohmann_json>")
413417

414418
target_include_directories(
415419
opentelemetry_exporter_otlp_file_client

0 commit comments

Comments
 (0)