From 6e102a4de85f9a2ab7400ccb3673b35d6ed88143 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 4 May 2022 19:19:08 +0800 Subject: [PATCH] cmake: mark FUSE REQUIRED if WITH_FUSE 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 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba3120d5dff4..a66cb2a51b9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() -- 2.47.3