From 82ca335e7bec13a845697f4eef17e164419d68e8 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 22 Feb 2020 00:48:36 +0800 Subject: [PATCH] cmake: exclude unittest_alloc_aging from "all" link it against GTest::Main, which was remove by 96a0439faf551dfae45676072eddd5f37a157289. Signed-off-by: Kefu Chai --- src/test/objectstore/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/test/objectstore/CMakeLists.txt b/src/test/objectstore/CMakeLists.txt index 00a2025ba54b..67c50c082a29 100644 --- a/src/test/objectstore/CMakeLists.txt +++ b/src/test/objectstore/CMakeLists.txt @@ -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_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 -- 2.47.3