Skip to content

Commit b3c38d4

Browse files
committed
fix CMake for tflite
1 parent 9ed83f2 commit b3c38d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

yolox_ros_cpp/yolox_cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ if(YOLOX_USE_TFLITE)
6767
set(INCLUDES ${INCLUDES} ${ABSEIL_CPP_ICLUDE_DIR})
6868
set(INCLUDES ${INCLUDES} ${FLATBUFFERS_INCLUDE_DIR})
6969
set(TARGET_LIBS ${TFLITE_LIB_PATH}/libtensorflow-lite.so)
70-
target_include_directories(yolox_cpp PUBLIC ${INCLUDES})
7170
endif()
7271

7372
# onnxruntime
@@ -89,6 +88,7 @@ ament_export_dependencies(${TARGET_DPENDENCIES})
8988
target_link_libraries(yolox_cpp ${TARGET_LIBS})
9089

9190
if (YOLOX_USE_TFLITE)
91+
target_include_directories(yolox_cpp PUBLIC ${INCLUDES})
9292
ament_export_include_directories(${INCLUDES})
9393
install(DIRECTORY ${TFLITE_LIB_PATH}/ DESTINATION lib)
9494
endif()

0 commit comments

Comments
 (0)