src/tools/CMakeLists.txt: conditionalise the FUSE usage

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
This commit is contained in:
Willem Jan Withagen 2016-07-21 09:59:08 +02:00
parent 278ea12b12
commit 2f7264e815

View 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)