Skip to content

Commit

Permalink
Fix cmake and makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
panickal-xmos committed Aug 23, 2022
1 parent 0059a95 commit 688984d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
git checkout f474248365ad48654ba8a27ac5bf49a6afbb80e7
git apply ../tflite_micro_compiler/patches/tflite-micro.patch
git apply ../tflite_micro_compiler/patches/tflite-micro-makefile.patch
make -Bf tensorflow/lite/micro/tools/make/Makefile NO_INTERPRETER=TRUE microlite
make -Bf tensorflow/lite/micro/tools/make/Makefile microlite
make -Bf tensorflow/lite/micro/tools/make/Makefile NO_INTERPRETER=TRUE microlite -j2
make -Bf tensorflow/lite/micro/tools/make/Makefile microlite -j2
- name: Requirements (Windows)
if: matrix.config.os == 'windows-latest'
run: |
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ IF(NOT GET_TF_SRC)
${TFLMD_SRC}/ruy
)
IF(WIN32)
SET(TF_LIB ${TFLM_SRC}/tools/make/gen/windows_x86_64/lib/libtensorflow-microlite.a)
SET(TF_LIB ${TFLM_SRC}/tools/make/gen/windows_x86_64_default/lib/libtensorflow-microlite.a)
ELSE()
SET(TF_LIB ${TFLM_SRC}/tools/make/gen/linux_x86_64/lib/libtensorflow-microlite.a)
SET(TF_LIB ${TFLM_SRC}/tools/make/gen/linux_x86_64_default/lib/libtensorflow-microlite.a)
ENDIF()
ELSE()
MESSAGE(FATAL_ERROR "\
Expand Down
4 changes: 2 additions & 2 deletions examples/generic_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PUBLIC
)

IF(WIN32)
TARGET_LINK_DIRECTORIES(${PROJECT_NAME} PUBLIC ${TFLM_SRC}/tools/make/gen/windows_x86_64/lib)
TARGET_LINK_DIRECTORIES(${PROJECT_NAME} PUBLIC ${TFLM_SRC}/tools/make/gen/windows_x86_64_default/lib)
ELSE()
TARGET_LINK_DIRECTORIES(${PROJECT_NAME} PUBLIC ${TFLM_SRC}/tools/make/gen/linux_x86_64/lib)
TARGET_LINK_DIRECTORIES(${PROJECT_NAME} PUBLIC ${TFLM_SRC}/tools/make/gen/linux_x86_64_default/lib)
ENDIF()
TARGET_LINK_LIBRARIES(${PROJECT_NAME} PUBLIC tensorflow-microlite-no-interpreter)

Expand Down

0 comments on commit 688984d

Please sign in to comment.