]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test: only compile ceph_test_bmap_alloc_replay WITH_BLUESTORE
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 31 Oct 2019 21:05:40 +0000 (22:05 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 31 Oct 2019 21:05:40 +0000 (22:05 +0100)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/objectstore/CMakeLists.txt

index 51d303e1a8eb373b3f653c9411120768db400ca6..8c4420d28a6000fc24cb1a08a4e7b196a9222b01 100644 (file)
@@ -147,8 +147,10 @@ add_executable(unittest_memstore_clone
 add_ceph_unittest(unittest_memstore_clone)
 target_link_libraries(unittest_memstore_clone os global)
 
-add_executable(ceph_test_bmap_alloc_replay
-  bmap_allocator_replay_test.cc)
-target_link_libraries(ceph_test_bmap_alloc_replay os global ${UNITTEST_LIBS})
-install(TARGETS ceph_test_bmap_alloc_replay
-  DESTINATION bin)
+if(WITH_BLUESTORE)
+  add_executable(ceph_test_bmap_alloc_replay
+    bmap_allocator_replay_test.cc)
+  target_link_libraries(ceph_test_bmap_alloc_replay os global ${UNITTEST_LIBS})
+  install(TARGETS ceph_test_bmap_alloc_replay
+    DESTINATION bin)
+endif()