From 5f62a28e86674744c2a9a0241e07a7a8a3f98c42 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Thu, 2 Jul 2015 15:42:34 +0200 Subject: [PATCH] Add download timeout and retries. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2de8278..9e84048 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ include(ExternalProject) file(MAKE_DIRECTORY ${CATKIN_DEVEL_PREFIX}/include) ExternalProject_Add(protobuf_src - URL https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz + DOWNLOAD_COMMAND wget --retry-connrefused --waitretry=1 --timeout=12 --tries 10 https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz UPDATE_COMMAND "" CONFIGURE_COMMAND cd ../protobuf_src && ./autogen.sh && ./configure --with-pic --prefix=${CATKIN_DEVEL_PREFIX} BUILD_COMMAND cd ../protobuf_src && make -j8