diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d8e196..5ae204c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pthread -fPIC") set(LIB_BASE_DIR /root/projects/temp_xiaoke/asr_runtime/lib_files) option(GRPC "whether to build with gRPC" ON) option(ONNX "whether to build with ONNX" ON) - +option(REBUILD "是否重新构筑项目依赖" OFF) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake-linux) # Model Option if(ONNX) diff --git a/cmake-linux/grpc.cmake b/cmake-linux/grpc.cmake index dbffbfc..5c9f586 100644 --- a/cmake-linux/grpc.cmake +++ b/cmake-linux/grpc.cmake @@ -1,7 +1,7 @@ # On how to build grpc, you may refer to https://github.com/grpc/grpc set(grpc_build_dir "${LIB_BASE_DIR}/grpc-build") -option(REBUILD "whether to build with ONNX" OFF) + if(REBUILD) # install grpc execute_process(COMMAND mkdir -p ${grpc_build_dir})