From 7166b3dd23b855047daafd57bdcd4edf452bd446 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 26 Feb 2020 15:05:47 +0000 Subject: fix(3p/cpp/googleapis): Use googleapis proto files provided by Nix Updates the build process for googleapis in C++ to read the proto sources from the GOOGLEAPIS_DIR environment variable (injected by Nix) instead of attempting to download them at build time. --- third_party/cpp/googleapis/CMakeLists.txt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'third_party/cpp/googleapis') diff --git a/third_party/cpp/googleapis/CMakeLists.txt b/third_party/cpp/googleapis/CMakeLists.txt index f755def48404..a48f0effcd7c 100644 --- a/third_party/cpp/googleapis/CMakeLists.txt +++ b/third_party/cpp/googleapis/CMakeLists.txt @@ -36,14 +36,6 @@ string( set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) -# Give application developers a hook to configure the version and hash -# downloaded from GitHub. -set(GOOGLE_CLOUD_CPP_GOOGLEAPIS_URL - "https://github.com/googleapis/googleapis/archive/0b1876b35e98f560f9c9ca9797955f020238a092.tar.gz" -) -set(GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256 - "4b0db7279ddf0b9ec6a39fd741ef4694b20025fe38f7d98f1ab1ba224c417c2d") - set(GOOGLEAPIS_CPP_SOURCE "${CMAKE_BINARY_DIR}/external/googleapis/src/googleapis_download") @@ -110,8 +102,7 @@ ExternalProject_Add( googleapis_download EXCLUDE_FROM_ALL ON PREFIX "${CMAKE_BINARY_DIR}/external/googleapis" - URL ${GOOGLE_CLOUD_CPP_GOOGLEAPIS_URL} - URL_HASH SHA256=${GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256} + URL $ENV{GOOGLEAPIS_DIR} CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "" -- cgit 1.4.1