Remove automatic finding from CMake. Users must specify NDK_DIR from now
on.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
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()