]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/objectstore/CMakefiles: fix unittest_alloc_bench build
authorSage Weil <sage@redhat.com>
Fri, 15 Jun 2018 19:22:01 +0000 (14:22 -0500)
committerSage Weil <sage@redhat.com>
Fri, 15 Jun 2018 19:22:01 +0000 (14:22 -0500)
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 <sage@redhat.com>
src/test/objectstore/CMakeLists.txt

index ddfaa5be14d512a7d9d9aac97e91ca9bcef4c25e..06f90727474dff6680a767b9a246ceddf426b17c 100644 (file)
@@ -108,7 +108,8 @@ if(WITH_BLUESTORE)
     Allocator_bench.cc
     $<TARGET_OBJECTS:unit-main>
     )
-  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