File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments