From: Willem Jan Withagen Date: Thu, 31 Oct 2019 21:05:40 +0000 (+0100) Subject: test: only compile ceph_test_bmap_alloc_replay WITH_BLUESTORE X-Git-Tag: v15.1.0~1067^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31306%2Fhead;p=ceph.git test: only compile ceph_test_bmap_alloc_replay WITH_BLUESTORE Signed-off-by: Willem Jan Withagen --- diff --git a/src/test/objectstore/CMakeLists.txt b/src/test/objectstore/CMakeLists.txt index 51d303e1a8eb..8c4420d28a60 100644 --- a/src/test/objectstore/CMakeLists.txt +++ b/src/test/objectstore/CMakeLists.txt @@ -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()