fix: build break on target test_cpp under OSX (#38479)

See: #38434

Signed-off-by: Ted Xu <ted.xu@zilliz.com>
pull/38514/head
Ted Xu 2024-12-17 13:38:45 +08:00 committed by GitHub
parent 01fa2f8da5
commit 33aecb0655
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View File

@ -149,6 +149,7 @@ if ( APPLE )
"-fopenmp"
"-pedantic"
"-Wall"
"-D_DARWIN_C_SOURCE"
"-Wno-gnu-zero-variadic-macro-arguments"
"-Wno-variadic-macros"
"-DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED=1"

View File

@ -27,6 +27,7 @@ set(MILVUS_TEST_FILES
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,12 +113,6 @@ 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}
@ -176,9 +171,7 @@ target_link_libraries(all_tests
install(TARGETS all_tests DESTINATION unittest)
if (LINUX)
add_subdirectory(bench)
endif ()
add_subdirectory(bench)
# if (USE_DYNAMIC_SIMD)
# add_executable(dynamic_simd_test