we don't define HAVE_FUSE, and HAVE_LIBFUSE is defined to be compatible
with autotools. so use WITH_FUSE in cmake whenever possible.
Signed-off-by: Kefu Chai <kchai@redhat.com>
$<TARGET_OBJECTS:common_util_obj>)
add_dependencies(ceph-osd erasure_code_plugins)
target_link_libraries(ceph-osd osd os global ${BLKID_LIBRARIES})
-if(${HAVE_LIBFUSE})
+if(WITH_FUSE)
target_link_libraries(ceph-osd ${FUSE_LIBRARIES})
-endif(${HAVE_LIBFUSE})
+endif()
install(TARGETS ceph-osd DESTINATION bin)
add_subdirectory(mds)
fs/FS.cc
${libos_xfs_srcs})
-if(HAVE_LIBFUSE)
+if(WITH_FUSE)
list(APPEND libos_srcs
FuseStore.cc)
endif()
ceph_test_stress_watch
DESTINATION ${CMAKE_INSTALL_BINDIR})
-if(${HAVE_FUSE})
+if(WITH_FUSE)
add_executable(ceph_test_cfuse_cache_invalidate
test_cfuse_cache_invalidate.cc
)
${EXTRALIBS}
${CMAKE_DL_LIBS}
)
-endif(${HAVE_FUSE})
+endif(WITH_FUSE)
if(${WITH_CEPHFS})
add_executable(test_c_headers