From c9b38a5210954f9fd3d46bc9560f455444f77f50 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 17 Apr 2020 14:31:15 +0800 Subject: [PATCH] cmake: detect fuse3 as well Fixes: https://tracker.ceph.com/issues/44891 Signed-off-by: Kefu Chai --- cmake/modules/FindFUSE.cmake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) -- 2.39.5