Skip to content

Commit ad9e57f

Browse files
authored
Fix calling target_include_directories on library folder (#520)
1 parent 51eef56 commit ad9e57f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/opentelemetry-proto.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ if(TARGET protobuf::libprotobuf)
151151
else() # cmake 3.8 or lower
152152
target_include_directories(opentelemetry_proto
153153
PUBLIC ${Protobuf_INCLUDE_DIRS})
154-
target_include_directories(opentelemetry_proto
155-
INTERFACE ${Protobuf_LIBRARIES})
154+
target_link_libraries(opentelemetry_proto
155+
INTERFACE ${Protobuf_LIBRARIES})
156156
endif()
157157

158158
if(BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)