mirror of
https://github.com/ceph/ceph
synced 2025-02-17 16:07:37 +00:00
CMake - fix check for FUSE
Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
This commit is contained in:
parent
a866a8947d
commit
0b27024698
@ -104,8 +104,8 @@ endif(${WITH_AIO})
|
||||
|
||||
option(WITH_FUSE "Fuse is here" ON)
|
||||
if(${WITH_FUSE})
|
||||
find_package(fuse REQUIRED)
|
||||
set(HAVE_LIBFUSE ${FUSE_FOUND})
|
||||
find_package(fuse)
|
||||
set(HAVE_FUSE ${FUSE_FOUND})
|
||||
CHECK_FUNCTION_EXISTS(fuse_getgroups HAVE_FUSE_GETGROUPS)
|
||||
endif(${WITH_FUSE})
|
||||
|
||||
|
@ -812,7 +812,7 @@ endif(${ENABLE_SHARED})
|
||||
install(TARGETS ceph-syn DESTINATION bin)
|
||||
install(TARGETS mount.ceph DESTINATION sbin)
|
||||
|
||||
if(WITH_FUSE)
|
||||
if(HAVE_FUSE)
|
||||
set(ceph_fuse_srcs
|
||||
ceph_fuse.cc
|
||||
client/fuse_ll.cc)
|
||||
@ -820,7 +820,7 @@ endif(${ENABLE_SHARED})
|
||||
target_link_libraries(ceph-fuse fuse client global)
|
||||
set_target_properties(ceph-fuse PROPERTIES COMPILE_FLAGS "-I${FUSE_INCLUDE_DIRS}")
|
||||
install(TARGETS ceph-fuse DESTINATION bin)
|
||||
endif(WITH_FUSE)
|
||||
endif(HAVE_FUSE)
|
||||
endif(WITH_LIBCEPHFS)
|
||||
|
||||
if(${WITH_RBD})
|
||||
|
@ -2164,7 +2164,7 @@ target_link_libraries(test_keyvaluedb_iterators
|
||||
${CMAKE_DL_LIBS}
|
||||
)
|
||||
|
||||
if(${WITH_FUSE})
|
||||
if(${HAVE_FUSE})
|
||||
add_executable(test_cfuse_cache_invalidate
|
||||
test_cfuse_cache_invalidate.cc
|
||||
)
|
||||
@ -2175,7 +2175,7 @@ if(${WITH_FUSE})
|
||||
${TCMALLOC_LIBS}
|
||||
${CMAKE_DL_LIBS}
|
||||
)
|
||||
endif(${WITH_FUSE})
|
||||
endif(${HAVE_FUSE})
|
||||
|
||||
if(${WITH_CEPHFS})
|
||||
add_executable(test_c_headers
|
||||
|
Loading…
Reference in New Issue
Block a user