From a28b1f97bd40b07ac587d44f7de7bf1e352c596e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 27 Sep 2019 15:01:59 +0900 Subject: [PATCH] [android_tflite] Remove finding NDK_DIR (#7799) Remove automatic finding from CMake. Users must specify NDK_DIR from now on. Signed-off-by: Hanjoung Lee --- runtimes/contrib/android_tflite/CMakeLists.txt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/runtimes/contrib/android_tflite/CMakeLists.txt b/runtimes/contrib/android_tflite/CMakeLists.txt index d30af51..6e239cf 100644 --- a/runtimes/contrib/android_tflite/CMakeLists.txt +++ b/runtimes/contrib/android_tflite/CMakeLists.txt @@ -4,15 +4,6 @@ endif(NOT BUILD_ANDROID_TFLITE) nnfw_find_package(TensorFlowLite REQUIRED) -# TODO Set this as system-level global configuration on android build -if(NOT DEFINED NDK_DIR) - file(GLOB NDK_DIRS "${CMAKE_SOURCE_DIR}/tools/cross/ndk/*") - list(LENGTH NDK_DIRS NDK_DIRS_COUNT) - if (NDK_DIRS_COUNT EQUAL 1) - set(NDK_DIR "${NDK_DIRS}") - endif(NDK_DIRS_COUNT EQUAL 1) -endif(NOT DEFINED NDK_DIR) - if(NOT DEFINED NDK_DIR) message(FATAL_ERROR "NDK_DIR should be specified via environment variable") endif() -- 2.7.4