]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: exclude unittest_alloc_aging from "all" 33466/head
authorKefu Chai <kchai@redhat.com>
Fri, 21 Feb 2020 16:48:36 +0000 (00:48 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 21 Feb 2020 16:49:00 +0000 (00:49 +0800)
link it against GTest::Main, which was remove by
96a0439faf551dfae45676072eddd5f37a157289.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/objectstore/CMakeLists.txt

index 00a2025ba54bcbe3d72d12a70b17c4e4b3766a63..67c50c082a2937217a101e0baa4ee3b8aa9ec72c 100644 (file)
@@ -112,11 +112,9 @@ if(WITH_BLUESTORE)
   set_target_properties(unittest_fastbmap_allocator PROPERTIES COMPILE_FLAGS
   "${UNITTEST_CXX_FLAGS}")
 
-  add_executable(unittest_alloc_aging
-    Allocator_aging_fragmentation.cc
-    $<TARGET_OBJECTS:unit-main>
-    )
-  target_link_libraries(unittest_alloc_aging os global)
+  add_executable(unittest_alloc_aging EXCLUDE_FROM_ALL
+    Allocator_aging_fragmentation.cc)
+  target_link_libraries(unittest_alloc_aging os global GTest::Main)
 
   # unittest_bluefs
   add_executable(unittest_bluefs