Remove gbs build check for cpu backend build (#4858)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 26 Mar 2019 06:10:53 +0000 (15:10 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 26 Mar 2019 06:10:53 +0000 (15:10 +0900)
To build neurun cpu backend, check tensorflow lite internal source code instead of gbs build flag

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/backend/cpu/CMakeLists.txt

index 5a617ee..b830637 100644 (file)
@@ -1,7 +1,9 @@
-# Workaround to avoid build fail by tensorflow version mismatch
-if(OBS_BUILD)
+# Need internal header code to build cpu backend
+nnfw_find_package(TensorFlowSource QUIET)
+nnfw_find_package(TensorFlowLite QUIET)
+if((NOT TensorFlowSource_FOUND) OR (NOT TensorFlowLite_FOUND))
   return()
-endif(OBS_BUILD)
+endif()
 
 add_subdirectory(kernel)