]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: compile and install ceph-bluefs-tool
authorKefu Chai <kchai@redhat.com>
Sat, 28 May 2016 08:18:31 +0000 (16:18 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 1 Jun 2016 15:49:45 +0000 (23:49 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 69e6f075dd1f6ad1f2ca69bf11d5d7562fa83275..12cc479aadc16faa33300eaa1a05f2d0561b775d 100644 (file)
@@ -854,6 +854,14 @@ if(WITH_LTTNG)
   add_dependencies(os objectstore-tp)
 endif()
 target_link_libraries(os kv)
+if(HAVE_LIBAIO)
+  add_executable(ceph-bluefs-tool
+    os/bluestore/bluefs_tool.cc)
+  target_link_libraries(ceph-bluefs-tool
+    os global)
+  install(TARGETS ceph-bluefs-tool
+    DESTINATION bin)
+endif()
 
 set(cls_references_files objclass/class_api.cc)
 add_library(cls_references_objs OBJECT ${cls_references_files})