-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: xianliang.li <[email protected]>
- Loading branch information
Showing
5 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,8 @@ venv/ | |
**/knowhere/swigknowhere.py | ||
wheelhouse/* | ||
|
||
**/thirdparty/cardinal | ||
|
||
*.bin | ||
|
||
CMakeUserPresets.json | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
set(CARDINAL_VERSION master) | ||
set(CARDINAL_REPO_URL "https://github.com/zilliztech/cardinal.git") | ||
|
||
set(CARDINAL_REPO_DIR "${CMAKE_SOURCE_DIR}/thirdparty/cardinal") | ||
|
||
message(STATUS "Build Cardinal-${CARDINAL_VERSION}") | ||
|
||
if (NOT EXISTS "${CARDINAL_REPO_DIR}/.git") | ||
execute_process(COMMAND git clone ${CARDINAL_REPO_URL} ${CARDINAL_REPO_DIR} | ||
RESULT_VARIABLE CARDINAL_CLONE_RESULT | ||
OUTPUT_VARIABLE CARDINAL_CLONE_OUTPUT | ||
ERROR_VARIABLE CARDINAL_CLONE_ERROR | ||
OUTPUT_STRIP_TRAILING_WHITESPACE | ||
ERROR_STRIP_TRAILING_WHITESPACE) | ||
if (NOT CARDINAL_CLONE_RESULT EQUAL "0") | ||
message(FATAL_ERROR "Failed to clone cardinal: ${CARDINAL_CLONE_ERROR}") | ||
else() | ||
execute_process(COMMAND git -C ${CARDINAL_REPO_DIR} checkout ${CARDINAL_VERSION} | ||
RESULT_VARIABLE CARDINAL_CHECKOUT_RESULT | ||
OUTPUT_VARIABLE CARDINAL_CHECKOUT_OUTPUT | ||
ERROR_VARIABLE CARDINAL_CHECKOUT_ERROR | ||
OUTPUT_STRIP_TRAILING_WHITESPACE | ||
ERROR_STRIP_TRAILING_WHITESPACE) | ||
if (NOT CARDINAL_CHECKOUT_RESULT EQUAL "0") | ||
message(FATAL_ERROR "Failed to checkout cardinal: ${CARDINAL_CHECKOUT_ERROR}") | ||
endif() | ||
endif() | ||
endif() | ||
|
||
include(${CARDINAL_REPO_DIR}/know/libcardinal.cmake) |
Submodule cardinal
deleted from
a60b00