From 2f7264e81507daec64103b939b6786952b348ed4 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Thu, 21 Jul 2016 09:59:08 +0200 Subject: [PATCH] src/tools/CMakeLists.txt: conditionalise the FUSE usage Signed-off-by: Willem Jan Withagen --- src/tools/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index d57c453d241..d8f6b5964f3 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -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)