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
Wang XiangYu 2020-05-07 22:51:38 +08:00 committed by GitHub
parent 7e3ba4ddd2
commit ac69f1ab8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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()