From: Kefu Chai Date: Fri, 17 Apr 2020 06:31:15 +0000 (+0800) Subject: cmake: detect fuse3 as well X-Git-Tag: v16.1.0~2578^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c9b38a5210954f9fd3d46bc9560f455444f77f50;p=ceph.git cmake: detect fuse3 as well Fixes: https://tracker.ceph.com/issues/44891 Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/FindFUSE.cmake b/cmake/modules/FindFUSE.cmake index 3578a088c690..1d0766f33553 100644 --- a/cmake/modules/FindFUSE.cmake +++ b/cmake/modules/FindFUSE.cmake @@ -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)