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