mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
Fix centos build error (#16251)
Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
parent
de70dfe0c3
commit
1160693e4c
@ -96,7 +96,7 @@ set( MILVUS_THIRDPARTY_SRC ${PROJECT_SOURCE_DIR}/thirdparty )
|
|||||||
|
|
||||||
# This will set RPATH to all excutable TARGET
|
# This will set RPATH to all excutable TARGET
|
||||||
# self-installed dynamic libraries will be correctly linked by excutable
|
# self-installed dynamic libraries will be correctly linked by excutable
|
||||||
set( CMAKE_INSTALL_RPATH "/usr/lib" "${CMAKE_INSTALL_PREFIX}/lib" )
|
set( CMAKE_INSTALL_RPATH "/usr/lib" "${CMAKE_INSTALL_PREFIX}/lib" "${CMAKE_INSTALL_PREFIX}/lib64" )
|
||||||
set( CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE )
|
set( CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE )
|
||||||
|
|
||||||
# **************************** Dependencies ****************************
|
# **************************** Dependencies ****************************
|
||||||
|
@ -61,8 +61,7 @@ macro(build_knowhere)
|
|||||||
set_target_properties( knowhere
|
set_target_properties( knowhere
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
IMPORTED_GLOBAL TRUE
|
IMPORTED_GLOBAL TRUE
|
||||||
IMPORTED_LOCATION ${INSTALL_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}knowhere${CMAKE_SHARED_LIBRARY_SUFFIX}
|
IMPORTED_LOCATION ${INSTALL_DIR}/${CMAKE_INSTALL_LIBDIR}/${CMAKE_SHARED_LIBRARY_PREFIX}knowhere${CMAKE_SHARED_LIBRARY_SUFFIX}
|
||||||
IMPORTED_IMPLIB ${INSTALL_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}knowhere${CMAKE_SHARED_LIBRARY_SUFFIX}.a
|
|
||||||
INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/${CMAKE_INSTALL_INCLUDEDIR})
|
INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
|
||||||
add_dependencies(knowhere knowhere_ep)
|
add_dependencies(knowhere knowhere_ep)
|
||||||
|
Loading…
Reference in New Issue
Block a user