Introduce BUILD_UBEN option (#4309)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 24 Jan 2019 00:00:56 +0000 (09:00 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 24 Jan 2019 00:00:56 +0000 (09:00 +0900)
* Introduce BUILD_UBEN option

This commit introduces BUILD_UBEN option to fix Tizen build break.

* Set default value

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

index ee9613f..c2059ae 100644 (file)
@@ -14,6 +14,7 @@ option(BUILD_DETECTION_APP "Build detection example app" OFF)
 option(BUILD_LABS "Build lab projects" OFF)
 option(BUILD_TFLITE_TEST "Build tensorflow lite test" OFF)
 option(BUILD_TFLITE_CLASSIFY_APP "Build tflite_classify app" OFF)
+option(BUILD_UBEN "Build micro-benchmark (uben) suite" OFF)
 
 if("${TARGET_ARCH}" STREQUAL "armv7l" AND NOT "${TARGET_OS}" STREQUAL "tizen")
   set(BUILD_PURE_ARM_COMPUTE ON)
index e27ca6c..2cc3b15 100644 (file)
@@ -1,3 +1,7 @@
+if(NOT BUILD_UBEN)
+  return()
+endif(NOT BUILD_UBEN)
+
 nnfw_find_package(ARMCompute QUIET)
 nnfw_find_package(Nonius QUIET)