diff --git a/CMakeLists.txt b/CMakeLists.txt index 2190dc9dd..e58f49516 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -529,6 +529,8 @@ if(NOT WITH_DISKANN) list(REMOVE_ITEM SERVER_SRCS "${PROJECT_SOURCE_DIR}/src/server/diskann_service.cc") endif() +list(REMOVE_ITEM BR_SRCS "${PROJECT_SOURCE_DIR}/src/br/main.cc") + include(CheckSymbolExists) macro(detect_target_arch) @@ -607,12 +609,8 @@ add_library( ${COPROCESSOR_SRCS} ${LIBEXPR_SRCS} ${DISKANN_SRCS} - ${MERGE_SRCS}) - -set(BR_TEST_SRCS ${BR_SRCS}) -list(REMOVE_ITEM BR_TEST_SRCS "${PROJECT_SOURCE_DIR}/src/br/main.cc") - -add_library(BR_TEST_OBJS OBJECT ${BR_TEST_SRCS}) + ${MERGE_SRCS} + ${BR_SRCS}) if(NOT WITH_DISKANN) list(REMOVE_ITEM DINGODB_OBJS ${DISKANN_SRCS}) @@ -710,6 +708,7 @@ add_executable( $) add_executable( dingodb_br + src/br/main.cc ${BR_SRCS} src/coordinator/coordinator_interaction.cc src/common/role.cc diff --git a/test/unit_test/CMakeLists.txt b/test/unit_test/CMakeLists.txt index be95824cb..a87935ae7 100644 --- a/test/unit_test/CMakeLists.txt +++ b/test/unit_test/CMakeLists.txt @@ -27,8 +27,7 @@ set(UNIT_TEST_LIBS $ $ $ - $ - $) + $) set(UNIT_TEST_LIBS ${UNIT_TEST_LIBS} ${GTEST_LIBRARIES} ${GMOCK_LIBRARIES} "-Xlinker \"-(\"" ${BLAS_LIBRARIES} "-Xlinker \"-)\"")