Enable building Android NN tests (#580)
author이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Wed, 11 Apr 2018 08:42:06 +0000 (17:42 +0900)
committer최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 <hk0110.choi@samsung.com>
Wed, 11 Apr 2018 08:42:06 +0000 (17:42 +0900)
Building Android NN tests are on by default.
In case of g++ < 6.3, it is disabled to avoid build failure in
TestGenerated.cpp.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
CMakeLists.txt

index 45fbd37..d9c0e6b 100644 (file)
@@ -73,8 +73,12 @@ option(BUILD_ACL "Build ARM Compute Library" OFF)
 option(BUILD_ACL_STATIC_LIB "Build ARM Comput Static Library" OFF)
 option(BUILD_BENCHMARK_ACL "Build ARM Compute Library Benchmarks" OFF)
 option(BUILD_NN_RUNTIME "Build NN Runtime" ON)
-option(BUILD_ANDROID_NN_RUNTIME_TEST "Build Android NN Runtime Test" OFF)
 option(BUILD_LABS "Build lab projects" ON)
+option(BUILD_ANDROID_NN_RUNTIME_TEST "Build Android NN Runtime Test" ON)
+
+if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.3)
+  set(BUILD_ANDROID_NN_RUNTIME_TEST OFF)
+endif()
 
 #
 # Common variables