From: Inki Dae Date: Mon, 29 Jun 2020 09:25:07 +0000 (+0900) Subject: Use Tizen specific TF_LITE_SCHEMA_PATH X-Git-Tag: submit/tizen/20210421.062230~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2927d52293cd663c85dbc349bae3da19dcc1e9f9;p=platform%2Fupstream%2Farmnn.git Use Tizen specific TF_LITE_SCHEMA_PATH The schema file, schema.fbs, will be installed in /usr/share/... in case of Tizen so use the specific TF_LITE_SCHEMA_PATH so that ARMNN can find schema.fbs in given path. Change-Id: Idd9b23000d18995fc5df4a45b0510c47231ae0c2 Signed-off-by: Inki Dae --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 63e6812..b236340 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -859,10 +859,10 @@ if(BUILD_UNIT_TESTS) # static C-array of bytes. This is needed at runtime for TfLite parser tests. add_custom_command( OUTPUT SchemaText.cpp - COMMAND cp ${TF_LITE_SCHEMA_INCLUDE_PATH}/schema.fbs g_TfLiteSchemaText + COMMAND cp ${TF_LITE_SCHEMA_PATH}/schema.fbs g_TfLiteSchemaText COMMAND xxd -i g_TfLiteSchemaText SchemaText.cpp WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - DEPENDS ${TF_LITE_SCHEMA_INCLUDE_PATH}/schema.fbs + DEPENDS ${TF_LITE_SCHEMA_PATH}/schema.fbs ) list(APPEND unittest_sources ${CMAKE_CURRENT_BINARY_DIR}/SchemaText.cpp) endif()