change default db path

Former-commit-id: ed8bbeb2ca73c5d2d4e4ec8b837cb948f18362fd
This commit is contained in:
groot 2019-06-28 11:06:27 +08:00
parent f57033725b
commit 61aedb86cc
2 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -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}