Include cmake ExternalProjectTools before using (#5231)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 21 May 2019 04:46:45 +0000 (13:46 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 21 May 2019 04:46:45 +0000 (13:46 +0900)
Include lost cmake ExternalProjectTools before using add_extdirectory macro

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
cmake/packages/NNPACKConfig.cmake
cmake/packages/TensorFlowLiteConfig.cmake

index 5111421..c115b2e 100644 (file)
@@ -26,6 +26,7 @@ function(_NNPACK_Import)
         set(NNPACK_LIBRARY_TYPE "static" CACHE STRING "")
         set(PTHREADPOOL_LIBRARY_TYPE "static" CACHE STRING "")
         set(CPUINFO_LIBRARY_TYPE "static" CACHE STRING "")
+        nnfw_include(ExternalProjectTools)
         add_extdirectory("${NNPACK_SOURCE_DIR}" nnpack EXCLUDE_FROM_ALL)
         # We build static versions of nnpack and pthreadpool but link
         # them into a shared library (high-perf-backend), so they need PIC.
index ea6e79d..8429b19 100644 (file)
@@ -29,6 +29,7 @@ if(BUILD_TENSORFLOW_LITE)
   # Optional packages
   nnfw_find_package(NEON2SSESource QUIET)
 
+  nnfw_include(ExternalProjectTools)
   add_extdirectory("${CMAKE_CURRENT_LIST_DIR}/TensorFlowLite" tflite)
 
   set(TensorFlowLite_FOUND TRUE)