From 3efd4f7209a157a33e52cccc440fdc147a70c16a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 15 Jun 2018 14:22:01 -0500 Subject: [PATCH] test/objectstore/CMakefiles: fix unittest_alloc_bench build Broken by 434589a3206aafe94de5a3b95b67eddb2cfc3bdb. The add_ceph_unittest helper does more than just add this to the list of tests--it also adjusts linking and build options. Signed-off-by: Sage Weil --- src/test/objectstore/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/objectstore/CMakeLists.txt b/src/test/objectstore/CMakeLists.txt index ddfaa5be14d51..06f90727474df 100644 --- a/src/test/objectstore/CMakeLists.txt +++ b/src/test/objectstore/CMakeLists.txt @@ -108,7 +108,8 @@ if(WITH_BLUESTORE) Allocator_bench.cc $ ) - target_link_libraries(unittest_alloc_bench os global) + set_target_properties(unittest_alloc_bench PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS}) + target_link_libraries(unittest_alloc_bench ${UNITTEST_LIBS} os global) add_executable(unittest_fastbmap_allocator fastbmap_allocator_test.cc -- 2.39.5