]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: s/HAVE_FUSE/WITH_FUSE/ s/HAVE_LIBFUSE/WITH_FUSE/
authorKefu Chai <kchai@redhat.com>
Wed, 20 Jul 2016 07:29:41 +0000 (15:29 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Jul 2016 07:29:43 +0000 (15:29 +0800)
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>
src/CMakeLists.txt
src/os/CMakeLists.txt
src/test/CMakeLists.txt

index a8a836757762bd56f54174cd8c02096456d19fe0..a09ed17f5afa4c9aa842be8e366ed83cfb51ac05 100644 (file)
@@ -662,9 +662,9 @@ add_executable(ceph-osd ${ceph_osd_srcs}
   $<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)
index e5983d749384c9d616d251d0012d891f4c91b0e5..ad79e1b022010513746c87bd8357336b216bb2aa 100644 (file)
@@ -41,7 +41,7 @@ set(libos_srcs
   fs/FS.cc
   ${libos_xfs_srcs})
 
-if(HAVE_LIBFUSE)
+if(WITH_FUSE)
   list(APPEND libos_srcs
     FuseStore.cc)
 endif()
index bfde79c24c33b8d654ada91c3ed203ba6b0473ee..9c1163b684552d86d5e8b618f7fd796b2b1f10ea 100644 (file)
@@ -439,7 +439,7 @@ install(TARGETS
   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
     )
@@ -449,7 +449,7 @@ if(${HAVE_FUSE})
     ${EXTRALIBS}
     ${CMAKE_DL_LIBS}
     )
-endif(${HAVE_FUSE})
+endif(WITH_FUSE)
 
 if(${WITH_CEPHFS})
   add_executable(test_c_headers