Skip to content

Commit

Permalink
Fix calling target_include_directories on library folder (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Jan 22, 2021
1 parent 51eef56 commit ad9e57f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/opentelemetry-proto.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ad9e57f

Please sign in to comment.