From 9d388ef334690632a8e35f3b7b7b591892e0c709 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Thu, 31 Oct 2019 22:05:40 +0100 Subject: [PATCH] test: only compile ceph_test_bmap_alloc_replay WITH_BLUESTORE Signed-off-by: Willem Jan Withagen --- src/test/objectstore/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/test/objectstore/CMakeLists.txt b/src/test/objectstore/CMakeLists.txt index 51d303e1a8eb3..8c4420d28a600 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() -- 2.39.5