From ad9e57f818a1467095f85d5e2d594e78737e82b5 Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Thu, 21 Jan 2021 20:24:09 -0800 Subject: [PATCH] Fix calling target_include_directories on library folder (#520) --- cmake/opentelemetry-proto.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)