Use Tizen specific TF_LITE_SCHEMA_PATH
authorInki Dae <inki.dae@samsung.com>
Mon, 29 Jun 2020 09:25:07 +0000 (18:25 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 19 Apr 2021 04:58:58 +0000 (13:58 +0900)
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 <inki.dae@samsung.com>
CMakeLists.txt

index 63e6812..b236340 100644 (file)
@@ -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()