Skip to content

Commit cac067f

Browse files
committed
fix cmake error_reporter path for idf
1 parent ebf6ae8 commit cac067f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/base.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,15 @@ file(GLOB TF_MICRO_TFLITE_BRIDGE_SRCS
137137
"${TF_MICRO_DIR}/tflite_bridge/*.cc"
138138
"${TF_MICRO_DIR}/tflite_bridge/*.c")
139139

140+
if (CONFIG_IDF_TARGET)
141+
file(GLOB TF_MLIR_API_SRCS
142+
"${COMPILER_MLIR_DIR}/lite/core/api/error_reporter.cc"
143+
)
144+
else()
140145
file(GLOB TF_MLIR_API_SRCS
141146
"${CMAKE_CURRENT_LIST_DIR}/tflm/tensorflow/compiler/mlir/lite/core/api/error_reporter.cc"
142147
)
148+
endif()
143149

144150
set (BOARD_ADDITIONAL_SRCS "")
145151

0 commit comments

Comments
 (0)