From: Kefu Chai Date: Fri, 21 Feb 2020 16:48:36 +0000 (+0800) Subject: cmake: exclude unittest_alloc_aging from "all" X-Git-Tag: v15.1.1~318^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33466%2Fhead;p=ceph.git cmake: exclude unittest_alloc_aging from "all" link it against GTest::Main, which was remove by 96a0439faf551dfae45676072eddd5f37a157289. Signed-off-by: Kefu Chai --- 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