Skip to content

Commit fe7a61e

Browse files
authored
optimize cmake for milvus lite (#1062)
Signed-off-by: yusheng.ma <[email protected]>
1 parent 3c8cbed commit fe7a61e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

CMakeLists.txt

+2-5
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ if(WITH_LIGHT)
147147
src/index/sparse/*.cc
148148
src/io/*.cc
149149
src/index/index_factory.cc)
150-
knowhere_file_glob(GLOB_RECURSE KNOWHERE_TRACER_SRCS src/common/tracer.cc
151-
src/common/prometheus_client.cc)
150+
knowhere_file_glob(GLOB_RECURSE KNOWHERE_TRACER_SRCS src/common/tracer.cc)
152151
list(REMOVE_ITEM KNOWHERE_SRCS ${KNOWHERE_TRACER_SRCS})
153152
endif()
154153

@@ -184,9 +183,7 @@ list(APPEND KNOWHERE_LINKER_LIBS Boost::boost)
184183
list(APPEND KNOWHERE_LINKER_LIBS faiss)
185184
list(APPEND KNOWHERE_LINKER_LIBS glog::glog)
186185
list(APPEND KNOWHERE_LINKER_LIBS nlohmann_json::nlohmann_json)
187-
if(NOT WITH_LIGHT)
188-
list(APPEND KNOWHERE_LINKER_LIBS prometheus-cpp::core prometheus-cpp::push)
189-
endif()
186+
list(APPEND KNOWHERE_LINKER_LIBS prometheus-cpp::core prometheus-cpp::push)
190187
list(APPEND KNOWHERE_LINKER_LIBS fmt::fmt-header-only)
191188
list(APPEND KNOWHERE_LINKER_LIBS Folly::folly)
192189
if(NOT WITH_LIGHT)

0 commit comments

Comments
 (0)