mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
Fix MinGW build error (#16267)
Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
parent
cd0f3cbcd3
commit
0baa8c60a5
11
internal/core/thirdparty/knowhere/CMakeLists.txt
vendored
11
internal/core/thirdparty/knowhere/CMakeLists.txt
vendored
@ -58,11 +58,20 @@ macro(build_knowhere)
|
||||
endif()
|
||||
|
||||
add_library(knowhere SHARED IMPORTED)
|
||||
set_target_properties( knowhere
|
||||
|
||||
if (MSYS)
|
||||
set_target_properties( knowhere
|
||||
PROPERTIES
|
||||
IMPORTED_GLOBAL TRUE
|
||||
IMPORTED_IMPLIB ${INSTALL_DIR}/${CMAKE_INSTALL_LIBDIR}/${CMAKE_SHARED_LIBRARY_PREFIX}knowhere${CMAKE_SHARED_LIBRARY_SUFFIX}.a
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/${CMAKE_INSTALL_INCLUDEDIR})
|
||||
else ()
|
||||
set_target_properties( knowhere
|
||||
PROPERTIES
|
||||
IMPORTED_GLOBAL TRUE
|
||||
IMPORTED_LOCATION ${INSTALL_DIR}/${CMAKE_INSTALL_LIBDIR}/${CMAKE_SHARED_LIBRARY_PREFIX}knowhere${CMAKE_SHARED_LIBRARY_SUFFIX}
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/${CMAKE_INSTALL_INCLUDEDIR})
|
||||
endif ()
|
||||
|
||||
add_dependencies(knowhere knowhere_ep)
|
||||
endmacro()
|
||||
|
Loading…
Reference in New Issue
Block a user