diff --git a/cmake/opentelemetry-proto.cmake b/cmake/opentelemetry-proto.cmake index 5484dcd439..e739e4cf71 100644 --- a/cmake/opentelemetry-proto.cmake +++ b/cmake/opentelemetry-proto.cmake @@ -151,8 +151,8 @@ if(TARGET protobuf::libprotobuf) else() # cmake 3.8 or lower target_include_directories(opentelemetry_proto PUBLIC ${Protobuf_INCLUDE_DIRS}) - target_include_directories(opentelemetry_proto - INTERFACE ${Protobuf_LIBRARIES}) + target_link_libraries(opentelemetry_proto + INTERFACE ${Protobuf_LIBRARIES}) endif() if(BUILD_SHARED_LIBS)