The current implement says that NNPACK is available even though
PeachpySource is missing.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
nnfw_find_package(SixSource REQUIRED)
nnfw_find_package(Enum34Source REQUIRED)
nnfw_find_package(OpcodesSource REQUIRED)
- nnfw_find_package(PeachpySource REQUIRED)
+ nnfw_find_package(PeachpySource QUIET)
+
+ if(NOT PYTHON_PEACHPY_SOURCE_FOUND)
+ set(NNPACK_FOUND FALSE PARENT_SCOPE)
+ return()
+ endif(NOT PYTHON_PEACHPY_SOURCE_FOUND)
# workaround for CI
set(THREADS_PTHREAD_ARG "2" CACHE STRING "Forcibly set by CMakeLists.txt." FORCE)