Skip to content

Commit

Permalink
Fix CMake build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tombana committed Jun 15, 2024
1 parent 761c084 commit abbfc50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ if (COMPILE_BENCHMARK)
get_directory_property(TFLITE_BENCHMARK_SRCS DIRECTORY ${TFLITE_SOURCE_DIR}/tools/benchmark DEFINITION TFLITE_BENCHMARK_SRCS)
list(FILTER TFLITE_BENCHMARK_SRCS EXCLUDE REGEX benchmark_main.cc)

# The TSL dir is included in the tensorflow CMakeLists.txt but because we manually refer to those source files here we have to explicitly list this include directory again.
set(TSL_SOURCE_DIR "${TENSORFLOW_SOURCE_DIR}/third_party/xla/third_party/tsl")
include_directories(
${TSL_SOURCE_DIR}
)
add_executable(lce_benchmark_model
${TFLITE_BENCHMARK_SRCS}
${LCE_BENCHMARK_SRCS} ${LCE_BENCHMARK_HRDS}
Expand Down

0 comments on commit abbfc50

Please sign in to comment.