fix linking libbcc with non-standard install paths
@@ -908,11 +908,15 @@ IF (WITH_H2OLOG)
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/h2olog/misc/gen-quic-bpf.py"
)
LIST(APPEND H2OLOG_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/h2olog/generated-quic.cc")
+ LINK_DIRECTORIES("${LIBBCC_LIBRARY_DIRS}")
ADD_EXECUTABLE(h2olog ${H2OLOG_SOURCE_FILES})
- TARGET_INCLUDE_DIRECTORIES(h2olog PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/h2olog")
- TARGET_LINK_LIBRARIES(h2olog ${LIBBCC_LIBRARIES})
+ TARGET_LINK_LIBRARIES(h2olog "${LIBBCC_LIBRARIES}")
+ TARGET_INCLUDE_DIRECTORIES(h2olog
+ PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/h2olog"
+ PRIVATE "${LIBBCC_INCLUDE_DIRS}"
+ )
INSTALL(TARGETS h2olog RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
ENDIF (WITH_H2OLOG)
