mirror of https://github.com/milvus-io/milvus.git
fix: build break on target test_cpp under OSX (#38479)
See: #38434 Signed-off-by: Ted Xu <ted.xu@zilliz.com>pull/38514/head
parent
01fa2f8da5
commit
33aecb0655
|
@ -149,6 +149,7 @@ if ( APPLE )
|
||||||
"-fopenmp"
|
"-fopenmp"
|
||||||
"-pedantic"
|
"-pedantic"
|
||||||
"-Wall"
|
"-Wall"
|
||||||
|
"-D_DARWIN_C_SOURCE"
|
||||||
"-Wno-gnu-zero-variadic-macro-arguments"
|
"-Wno-gnu-zero-variadic-macro-arguments"
|
||||||
"-Wno-variadic-macros"
|
"-Wno-variadic-macros"
|
||||||
"-DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED=1"
|
"-DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED=1"
|
||||||
|
|
|
@ -27,6 +27,7 @@ set(MILVUS_TEST_FILES
|
||||||
test_array_bitmap_index.cpp
|
test_array_bitmap_index.cpp
|
||||||
test_array_inverted_index.cpp
|
test_array_inverted_index.cpp
|
||||||
test_bf.cpp
|
test_bf.cpp
|
||||||
|
test_bf_sparse.cpp
|
||||||
test_binary.cpp
|
test_binary.cpp
|
||||||
test_binlog_index.cpp
|
test_binlog_index.cpp
|
||||||
test_bitmap_index.cpp
|
test_bitmap_index.cpp
|
||||||
|
@ -112,12 +113,6 @@ if (LINUX OR APPLE)
|
||||||
test_array.cpp test_array_expr.cpp)
|
test_array.cpp test_array_expr.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (LINUX)
|
|
||||||
set(MILVUS_TEST_FILES
|
|
||||||
${MILVUS_TEST_FILES}
|
|
||||||
test_bf_sparse.cpp)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (DEFINED AZURE_BUILD_DIR)
|
if (DEFINED AZURE_BUILD_DIR)
|
||||||
set(MILVUS_TEST_FILES
|
set(MILVUS_TEST_FILES
|
||||||
${MILVUS_TEST_FILES}
|
${MILVUS_TEST_FILES}
|
||||||
|
@ -176,9 +171,7 @@ target_link_libraries(all_tests
|
||||||
|
|
||||||
install(TARGETS all_tests DESTINATION unittest)
|
install(TARGETS all_tests DESTINATION unittest)
|
||||||
|
|
||||||
if (LINUX)
|
add_subdirectory(bench)
|
||||||
add_subdirectory(bench)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# if (USE_DYNAMIC_SIMD)
|
# if (USE_DYNAMIC_SIMD)
|
||||||
# add_executable(dynamic_simd_test
|
# add_executable(dynamic_simd_test
|
||||||
|
|
Loading…
Reference in New Issue