From 43775a4f90aa9239fd959b128a78717b23949404 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=EC=83=81=EA=B7=9C/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Principal=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Wed, 11 Apr 2018 17:42:06 +0900 Subject: [PATCH] Enable building Android NN tests (#580) 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 --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 45fbd37..d9c0e6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 -- 2.7.4