]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/tools/CMakeLists.txt: conditionaly build ceph-client-debug
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 3 Sep 2016 14:28:10 +0000 (16:28 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 7 Sep 2016 10:44:03 +0000 (12:44 +0200)
 - Honor WITH_LIBCEPHFS

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/tools/CMakeLists.txt

index 360330b83c6c9b739675358c18f14adfabb4465b..d5a65ca6822e2e9b71b04331450378ad1fc100d2 100644 (file)
@@ -40,9 +40,11 @@ if(WITH_FUSE)
 endif(WITH_FUSE)
 install(TARGETS ceph-objectstore-tool DESTINATION bin)
 
-add_executable(ceph-client-debug ceph-client-debug.cc)
-target_link_libraries(ceph-client-debug cephfs global client)
-install(TARGETS ceph-client-debug DESTINATION bin)
+if(WITH_LIBCEPHFS)
+  add_executable(ceph-client-debug ceph-client-debug.cc)
+  target_link_libraries(ceph-client-debug cephfs global client)
+  install(TARGETS ceph-client-debug DESTINATION bin)
+endif(WITH_LIBCEPHFS)
 
 add_executable(ceph-kvstore-tool ceph_kvstore_tool.cc)
 target_link_libraries(ceph-kvstore-tool os global)