diff --git a/cmake/external/grpc.cmake b/cmake/external/grpc.cmake index 0c7db6a444d7b587f3aa1aa657fc77d97331f41b..82437a84248fece843c3659c9422d9b579b5066f 100644 --- a/cmake/external/grpc.cmake +++ b/cmake/external/grpc.cmake @@ -49,7 +49,8 @@ ExternalProject_Add( PREFIX ${GRPC_SOURCES_DIR} UPDATE_COMMAND "" CONFIGURE_COMMAND "" - PATCH_COMMAND "git apply ${PADDLE_SOURCE_DIR}/patches/grpc/fix_too_early_destory.patch" + BUILD_IN_SOURCE 1 + PATCH_COMMAND git apply ${PADDLE_SOURCE_DIR}/patches/grpc/fix_too_early_destory.patch # NOTE(yuyang18): # Disable -Werror, otherwise the compile will fail in MacOS. # It seems that we cannot configure that by make command.