From 3038383e363042ea732e9012939c5bbf254da878 Mon Sep 17 00:00:00 2001 From: Ted Xu Date: Fri, 13 Dec 2024 16:24:43 +0800 Subject: [PATCH] fix: UT compile broken under osx (#38432) See: #38434 --------- Signed-off-by: Ted Xu --- internal/core/unittest/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/core/unittest/CMakeLists.txt b/internal/core/unittest/CMakeLists.txt index 72cf5fe64966e..482ddfd6ecf9f 100644 --- a/internal/core/unittest/CMakeLists.txt +++ b/internal/core/unittest/CMakeLists.txt @@ -23,12 +23,10 @@ add_definitions(-DMILVUS_TEST_SEGCORE_YAML_PATH="${CMAKE_SOURCE_DIR}/unittest/te # TODO: better to use ls/find pattern set(MILVUS_TEST_FILES init_gtest.cpp - test_always_true_expr.cpp test_array_bitmap_index.cpp test_array_inverted_index.cpp test_bf.cpp - test_bf_sparse.cpp test_binary.cpp test_binlog_index.cpp test_bitmap_index.cpp @@ -112,6 +110,12 @@ if (LINUX OR APPLE) test_array.cpp test_array_expr.cpp) endif() +if (LINUX) + set(MILVUS_TEST_FILES + ${MILVUS_TEST_FILES} + test_bf_sparse.cpp) +endif() + if (DEFINED AZURE_BUILD_DIR) set(MILVUS_TEST_FILES ${MILVUS_TEST_FILES}