]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: detect fuse3 as well 34769/head
authorKefu Chai <kchai@redhat.com>
Fri, 17 Apr 2020 06:31:15 +0000 (14:31 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Apr 2020 12:00:56 +0000 (14:00 +0200)
Fixes: https://tracker.ceph.com/issues/44891
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c9b38a5210954f9fd3d46bc9560f455444f77f50)

cmake/modules/FindFUSE.cmake

index 3578a088c690269f9dcd9bd4da5161e980b03af1..1d0766f33553442968d12c95724ae98fcc77476e 100644 (file)
@@ -6,8 +6,13 @@
 # - FUSE_LIBRARIES : FUSE library
 # - FUSE_VERSION : the version of the FUSE library found
 
-set(fuse_names fuse)
-set(fuse_suffixes fuse)
+if(PACKAGE_FIND_VERSION AND PACKAGE_FIND_VERSION VERSION_LESS "3.0")
+  set(fuse_names fuse)
+  set(fuse_suffixes fuse)
+else()
+  set(fuse_names fuse3 fuse)
+  set(fuse_suffixes fuse3 fuse)
+endif()
 
 if(APPLE)
   list(APPEND fuse_names libosxfuse.dylib)