]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
src/tools/CMakeLists.txt: conditionalise the FUSE usage
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 21 Jul 2016 07:59:08 +0000 (09:59 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 21 Jul 2016 07:59:08 +0000 (09:59 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/tools/CMakeLists.txt

index d57c453d24122b75be215bb727b8712f75d3ea97..d8f6b5964f35e591bcaff5e1d2443fed7adcfe42 100644 (file)
@@ -34,7 +34,10 @@ install(PROGRAMS
 add_executable(ceph-objectstore-tool
   ceph_objectstore_tool.cc
   RadosDump.cc)
-target_link_libraries(ceph-objectstore-tool osd os global ${Boost_PROGRAM_OPTIONS_LIBRARY} ${CMAKE_DL_LIBS} fuse)
+target_link_libraries(ceph-objectstore-tool osd os global ${Boost_PROGRAM_OPTIONS_LIBRARY} ${CMAKE_DL_LIBS})
+if(WITH_FUSE)
+  target_link_libraries(ceph-objectstore-tool fuse)
+endif(WITH_FUSE)
 install(TARGETS ceph-objectstore-tool DESTINATION bin)
 
 add_executable(ceph-client-debug ceph-client-debug.cc)