diff --git a/examples/otlp/CMakeLists.txt b/examples/otlp/CMakeLists.txt index 8dad0101fc..e6102611b6 100644 --- a/examples/otlp/CMakeLists.txt +++ b/examples/otlp/CMakeLists.txt @@ -115,7 +115,7 @@ if(WITH_OTLP_HTTP) target_compile_definitions(example_otlp_instrumented_http PRIVATE OPENTELEMETRY_BUILD_IMPORT_DLL) target_link_libraries(example_otlp_instrumented_http - opentelemetry-cpp::opentelemetry_cpp) + PRIVATE opentelemetry-cpp::opentelemetry_cpp) else() target_link_libraries( example_otlp_instrumented_http