未验证 提交 ac69f1ab 编写于 作者: W Wang XiangYu 提交者: GitHub

add_dependencies in cmake (#2239)

* add_dependencies in cmake
Signed-off-by: Nwxyu <xy.wang@zilliz.com>

* update
Signed-off-by: Nwxyu <xy.wang@zilliz.com>
上级 7e3ba4dd
......@@ -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()
\ No newline at end of file
endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册