Former-commit-id: 162878ec45e3cd98555f08a1d3cf7fc343aa477a
This commit is contained in:
zhiru 2019-07-22 11:16:14 +08:00
parent 241320fb50
commit 0ed96e5f2f
4 changed files with 16 additions and 0 deletions

View File

@ -47,6 +47,10 @@ set(db_libs
if(${BUILD_FAISS_WITH_MKL} STREQUAL "ON")
set(db_libs ${db_libs} ${MKL_LIBS} ${MKL_LIBS})
else()
set(db_libs ${db_libs}
lapack
openblas)
endif()
target_link_libraries(db_test ${db_libs} ${unittest_libs})

View File

@ -36,6 +36,10 @@ set(wrapper_libs
)
if(${BUILD_FAISS_WITH_MKL} STREQUAL "ON")
set(wrapper_libs ${wrapper_libs} ${MKL_LIBS} ${MKL_LIBS})
else()
set(wrapper_libs ${wrapper_libs}
lapack
openblas)
endif()
target_link_libraries(wrapper_test ${wrapper_libs} ${unittest_libs})

View File

@ -65,6 +65,10 @@ target_link_libraries(metrics_test
)
if(${BUILD_FAISS_WITH_MKL} STREQUAL "ON")
target_link_libraries(metrics_test ${MKL_LIBS} ${MKL_LIBS})
else()
target_link_libraries(metrics_test
lapack
openblas)
endif()
install(TARGETS metrics_test DESTINATION bin)

View File

@ -49,6 +49,10 @@ set(require_libs
if(${BUILD_FAISS_WITH_MKL} STREQUAL "ON")
set(require_libs ${require_libs} ${MKL_LIBS} ${MKL_LIBS})
else()
set(require_libs ${require_libs}
lapack
openblas)
endif()
target_link_libraries(server_test