From: Kefu Chai Date: Wed, 4 May 2022 11:19:08 +0000 (+0800) Subject: cmake: mark FUSE REQUIRED if WITH_FUSE X-Git-Tag: v18.0.0~898^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6e102a4de85f9a2ab7400ccb3673b35d6ed88143;p=ceph.git cmake: mark FUSE REQUIRED if WITH_FUSE 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ba3120d5dff4..a66cb2a51b9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,7 +185,7 @@ endif() option(WITH_FUSE "Fuse is here" ON) if(WITH_FUSE) - find_package(FUSE) + find_package(FUSE REQUIRED) set(HAVE_LIBFUSE ${FUSE_FOUND}) endif()