mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
change default db path
Former-commit-id: ed8bbeb2ca73c5d2d4e4ec8b837cb948f18362fd
This commit is contained in:
parent
f57033725b
commit
61aedb86cc
@ -141,7 +141,12 @@ endif(BUILD_UNIT_TEST)
|
||||
|
||||
add_custom_target(Clean-All COMMAND ${CMAKE_BUILD_TOOL} clean)
|
||||
|
||||
set(MILVUS_PATH "/tmp/milvus")
|
||||
|
||||
if("${MILVUS_DB_PATHE}" STREQUAL "")
|
||||
set(MILVUS_PATH "/tmp/milvus")
|
||||
else()
|
||||
set(MILVUS_PATH ${MILVUS_DB_PATHE})
|
||||
endif()
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf/server_config.template ${CMAKE_CURRENT_SOURCE_DIR}/conf/server_config.yaml)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf/log_config.template ${CMAKE_CURRENT_SOURCE_DIR}/conf/log_config.conf)
|
||||
|
||||
|
@ -6,6 +6,7 @@ LICENSE_CHECK="OFF"
|
||||
INSTALL_PREFIX=$(pwd)/milvus
|
||||
MAKE_CLEAN="OFF"
|
||||
BUILD_COVERAGE="OFF"
|
||||
DB_PATH="/opt/milvus"
|
||||
|
||||
while getopts "p:t:uhlrc" arg
|
||||
do
|
||||
@ -71,6 +72,7 @@ if [[ ${MAKE_CLEAN} == "ON" ]]; then
|
||||
-DCMAKE_CUDA_COMPILER=${CUDA_COMPILER} \
|
||||
-DCMAKE_LICENSE_CHECK=${LICENSE_CHECK} \
|
||||
-DBUILD_COVERAGE=${BUILD_COVERAGE} \
|
||||
-DMILVUS_DB_PATHE=${DB_PATH} \
|
||||
$@ ../"
|
||||
echo ${CMAKE_CMD}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user