Set the default value of BUILD_PURE_ARM_COMPUTE (#4710)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 13 Mar 2019 07:19:44 +0000 (16:19 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 13 Mar 2019 07:19:44 +0000 (16:19 +0900)
Now, the default value of BUILD_PURE_ARM_COMPUTE is decided according to
the target architecture.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
cmake/CfgOptionFlags.cmake

index 5821dca..cbdd332 100644 (file)
@@ -4,7 +4,12 @@ include(CMakeDependentOption)
 # Configuration flags
 #
 option(BUILD_EXT_MULTITHREAD "Build external build using multi thread" ON)
-option(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime" ON)
+CMAKE_DEPENDENT_OPTION(BUILD_PURE_ARM_COMPUTE "Build pure_arm_compute runtime"
+                       # Enable PURE ARMCompute runtime build if the target architecture is ARM
+                       #
+                       # TODO Enable build if ARMCompute library is available
+                       ON "${TARGET_ARCH_BASE} STREQUAL arm"
+                       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"