From 274881a3fd50f4a00416347f8491f2a328c5e6b6 Mon Sep 17 00:00:00 2001 From: gongweibao Date: Mon, 4 Jun 2018 08:57:06 +0000 Subject: [PATCH 1/2] add --- cmake/external/grpc.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/external/grpc.cmake b/cmake/external/grpc.cmake index 9459f1ddfe85f..71d1be5ae94af 100644 --- a/cmake/external/grpc.cmake +++ b/cmake/external/grpc.cmake @@ -33,10 +33,14 @@ ELSE() SET(BUILD_CMD make HAS_SYSTEM_PROTOBUF=false -s -j ${NUM_OF_PROCESSOR} static grpc_cpp_plugin) ENDIF() +SET(GRPC_DOWNLOAD_SRC_MD5 "468aeea0b603b0260742fd028cf9017f") + ExternalProject_Add( extern_grpc DEPENDS protobuf zlib + # version:1.10.x URL "http://paddlepaddledeps.bj.bcebos.com/grpc.tar.xz" + URL_MD5 ${GRPC_DOWNLOAD_SRC_MD5} PREFIX ${GRPC_SOURCES_DIR} UPDATE_COMMAND "" CONFIGURE_COMMAND "" From 4eb2b63208c61018841f0b3cf235cf1ae184f874 Mon Sep 17 00:00:00 2001 From: gongweibao Date: Tue, 5 Jun 2018 05:07:08 +0000 Subject: [PATCH 2/2] follow comments --- cmake/external/grpc.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/external/grpc.cmake b/cmake/external/grpc.cmake index d6456bdf39bea..ffdf91a354bd9 100644 --- a/cmake/external/grpc.cmake +++ b/cmake/external/grpc.cmake @@ -33,8 +33,6 @@ ELSE() SET(BUILD_CMD make HAS_SYSTEM_PROTOBUF=false -s -j ${NUM_OF_PROCESSOR} static grpc_cpp_plugin) ENDIF() -SET(GRPC_DOWNLOAD_SRC_MD5 "c9c58ee7d0e8929a63155af6a2ecdbd0") - # FIXME(wuyi): do not build zlib cares protobuf twice, find a way to build grpc with them ExternalProject_Add( extern_grpc @@ -47,7 +45,7 @@ ExternalProject_Add( # checkout and clean other dirs under third_party # 4. remove .git, and package the directory. URL "http://paddlepaddledeps.bj.bcebos.com/grpc-v1.8.x.tar.gz" - URL_MD5 ${GRPC_DOWNLOAD_SRC_MD5} + URL_MD5 "c9c58ee7d0e8929a63155af6a2ecdbd0" PREFIX ${GRPC_SOURCES_DIR} UPDATE_COMMAND "" CONFIGURE_COMMAND ""