]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: mark FUSE REQUIRED if WITH_FUSE 46142/head
authorKefu Chai <tchaikov@gmail.com>
Wed, 4 May 2022 11:19:08 +0000 (19:19 +0800)
committerKefu Chai <tchaikov@gmail.com>
Wed, 4 May 2022 11:23:16 +0000 (19:23 +0800)
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>
CMakeLists.txt

index ba3120d5dff41e06b0c9998152545dc490678f2a..a66cb2a51b9c54245522a6b53764c92ce850c331 100644 (file)
@@ -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()