[android_tflite] Remove finding NDK_DIR (#7799)
author이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Fri, 27 Sep 2019 06:01:59 +0000 (15:01 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 27 Sep 2019 06:01:59 +0000 (15:01 +0900)
Remove automatic finding from CMake. Users must specify NDK_DIR from now
on.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtimes/contrib/android_tflite/CMakeLists.txt

index d30af51..6e239cf 100644 (file)
@@ -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()