mirror of https://github.com/milvus-io/milvus.git
add_dependencies in cmake (#2239)
* add_dependencies in cmake Signed-off-by: wxyu <xy.wang@zilliz.com> * update Signed-off-by: wxyu <xy.wang@zilliz.com>pull/2250/head
parent
7e3ba4ddd2
commit
ac69f1ab8d
|
@ -255,6 +255,7 @@ if (NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
|
|||
endif ()
|
||||
|
||||
add_library(milvus_engine STATIC ${engine_files})
|
||||
add_dependencies(milvus_engine fiu)
|
||||
target_link_libraries(milvus_engine
|
||||
knowhere
|
||||
${third_party_libs}
|
||||
|
@ -266,6 +267,7 @@ if (MILVUS_WITH_PROMETHEUS)
|
|||
else ()
|
||||
add_library(metrics STATIC ${metrics_files})
|
||||
endif ()
|
||||
add_dependencies(metrics fiu)
|
||||
|
||||
set(metrics_lib
|
||||
yaml-cpp
|
||||
|
@ -280,6 +282,7 @@ endif ()
|
|||
target_link_libraries(metrics ${metrics_lib})
|
||||
|
||||
add_library(tracing STATIC ${tracing_files} ${thirdparty_files})
|
||||
add_dependencies(tracing fiu)
|
||||
set(tracing_lib
|
||||
opentracing
|
||||
opentracing_mocktracer
|
||||
|
@ -342,4 +345,4 @@ elseif(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||
DESTINATION lib)
|
||||
else()
|
||||
message("unknown CMAKE_BUILD_TYPE")
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue