option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" ON)
CMAKE_DEPENDENT_OPTION(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source"
# Enable ARMCompute build if the target architecture is aarch
- OFF "NOT ${TARGET_ARCH_BASE} MATCHES arm*;NOT ${TARGET_ARCH_BASE} MATCHES aarch*"
+ ON "TARGET_IS_ARMARCH"
# Disable ARMCompute build otherwise
- ON)
+ OFF)
option(DOWNLOAD_NONIUS "Download nonius source" ON)
option(DOWNLOAD_BOOST "Download boost source" OFF)
option(BUILD_BOOST "Build boost source" OFF)
# Enable PURE ARMCompute runtime build if the target architecture is aarch
#
# TODO Enable build if ARMCompute library is available
- OFF "NOT ${TARGET_ARCH_BASE} STREQUAL arm;NOT ${TARGET_ARCH_BASE} STREQUAL aarch"
- ON)
+ ON "TARGET_IS_ARMARCH"
+ OFF)
option(BUILD_NEURUN "Build neurun" OFF) #if implementation is done, it would replace nn runtime.
option(BUILD_LOGGING "Build logging runtime" ON)
CMAKE_DEPENDENT_OPTION(BUILD_RUNTIME_NNAPI_TEST "Build Runtime NN API Generated Test"
message(FATAL_ERROR "'${HOST_ARCH}' architecture is not supported")
endif()
+# TARGET_IS_ARMARCH: for workaround arm-related build option setting
+# TODO Remove TARGET_IS_ARMARCH
+set(TARGET_IS_ARMARCH TRUE)
if("${TARGET_ARCH}" STREQUAL "x86_64")
set(TARGET_ARCH_BASE ${TARGET_ARCH})
+ set(TARGET_IS_ARM FALSE)
elseif("${TARGET_ARCH}" STREQUAL "armv7l")
set(TARGET_ARCH_BASE "arm")
elseif("${TARGET_ARCH}" STREQUAL "arm64")