From 8cc4317e6ac638997b5e87a99906da468c3567e7 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 10 May 2024 13:58:39 +0800 Subject: [PATCH] =?UTF-8?q?2024.5.10-=E5=8E=BB=E9=99=A4ITN=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- cmake-linux/grpc.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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})