From: Sage Weil Date: Fri, 15 Jun 2018 19:22:01 +0000 (-0500) Subject: test/objectstore/CMakefiles: fix unittest_alloc_bench build X-Git-Tag: v14.0.1~1097^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3efd4f7209a157a33e52cccc440fdc147a70c16a;p=ceph-ci.git 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 --- diff --git a/src/test/objectstore/CMakeLists.txt b/src/test/objectstore/CMakeLists.txt index ddfaa5be14d..06f90727474 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