* Always require NEON2SSESource for TFLITE build
NEON2SSE is a header-only library, and thus there is no need to exclude
it for cross or arm native build.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Check TARGET_ARCH in NEON2SSESource package
return()
endif(NOT DOWNLOAD_NEON2SSE)
+ # TODO Remove this workaround once target preset is ready
+ if(NOT (TARGET_ARCH_BASE STREQUAL "x86_64"))
+ set(NEON2SSESource_FOUND FALSE PARENT_SCOPE)
+ return()
+ endif(NOT (TARGET_ARCH_BASE STREQUAL "x86_64"))
+
nnfw_include(ExternalSourceTools)
nnfw_include(OptionTools)
list(APPEND TFLITE_INCLUDES "${TFLITE_DEPEND_DIR}/farmhash/src")
list(APPEND TFLITE_INCLUDES "${TFLITE_DEPEND_DIR}/flatbuffers/include")
-if(BUILD_IS_NATIVE AND NOT HOST_ARCH_BASE STREQUAL "arm")
- # Required external sourcefor x86-64 build
- nnfw_find_package(NEON2SSESource REQUIRED)
- list(APPEND TFLITE_INCLUDES "${TFLITE_DEPEND_DIR}/neon_2_sse")
-endif()
+nnfw_find_package(NEON2SSESource QUIET)
+
+if(NEON2SSESource_FOUND)
+ list(APPEND TFLITE_INCLUDES "${NEON2SSESource_DIR}")
+endif(NEON2SSESource_FOUND)
# This kernels are not used on nnfw
## spectrogram