in src/CMakeLists.txt, if "WITH_FUSE" is true, we always link ceph-fuse
against FUSE::FUSE no matter what FUSE_FOUND is.
to avoid the FTBFS when FUSE is not found when building ceph-fuse, we'd
better fail early by marking FUSE a must have.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
option(WITH_FUSE "Fuse is here" ON)
if(WITH_FUSE)
- find_package(FUSE)
+ find_package(FUSE REQUIRED)
set(HAVE_LIBFUSE ${FUSE_FOUND})
endif()