option(WITH_FUSE "Fuse is here" ON)
if(${WITH_FUSE})
find_package(fuse)
-set(HAVE_FUSE ${FUSE_FOUND})
+set(HAVE_LIBFUSE ${FUSE_FOUND})
CHECK_FUNCTION_EXISTS(fuse_getgroups HAVE_FUSE_GETGROUPS)
endif(${WITH_FUSE})
os/fs/XFS.cc)
endif(${HAVE_XFS})
set(libos_srcs
- os/FuseStore.cc
os/ObjectStore.cc
os/Transaction.cc
os/filestore/chain_xattr.cc
os/bluestore/StupidAllocator.cc
os/fs/FS.cc
${libos_xfs_srcs})
+if(${HAVE_LIBFUSE})
+ list(APPEND libos_srcs
+ os/FuseStore.cc)
+endif(${HAVE_LIBFUSE})
# make rocksdb statically
add_custom_target(build_rocksdb
if(${WITH_LTTNG})
target_link_libraries(os libos_tp)
endif(${WITH_LTTNG})
+if(${HAVE_LIBFUSE})
+ target_link_libraries(os ${FUSE_LIBRARIES})
+endif(${HAVE_LIBFUSE})
target_link_libraries(os kv)
set(cls_references_files objclass/class_api.cc)
$<TARGET_OBJECTS:heap_profiler_objs>
$<TARGET_OBJECTS:common_util_obj>)
add_dependencies(ceph-osd erasure_code_plugins)
-target_link_libraries(ceph-osd osd os global ${BLKID_LIBRARIES} ${ALLOC_LIBS} fuse)
+target_link_libraries(ceph-osd osd os global ${BLKID_LIBRARIES} ${ALLOC_LIBS})
+if(${HAVE_LIBFUSE})
+ target_link_libraries(ceph-osd ${FUSE_LIBRARIES})
+endif(${HAVE_LIBFUSE})
install(TARGETS ceph-osd DESTINATION bin)
# MDS
install(TARGETS ceph-syn DESTINATION bin)
install(TARGETS mount.ceph DESTINATION sbin)
- if(HAVE_FUSE)
+ if(HAVE_LIBFUSE)
set(ceph_fuse_srcs
ceph_fuse.cc
client/fuse_ll.cc)
add_executable(ceph-fuse ${ceph_fuse_srcs})
- target_link_libraries(ceph-fuse fuse client global)
+ target_link_libraries(ceph-fuse ${FUSE_LIBRARIES} client global)
set_target_properties(ceph-fuse PROPERTIES COMPILE_FLAGS "-I${FUSE_INCLUDE_DIRS}")
install(TARGETS ceph-fuse DESTINATION bin)
- endif(HAVE_FUSE)
+ endif(HAVE_LIBFUSE)
endif(WITH_LIBCEPHFS)
set(journal_srcs