diff options
author | rsgowman <rgowman@google.com> | 2018-02-27 10:34:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-27 10:34:21 -0500 |
commit | f05888198a668b5d2aa75c2c8941a6b3b176b9c6 (patch) | |
tree | 4c109fe8e906cb18e88b39f7b20b30520177068c /cmake/external/protobuf.cmake | |
parent | a6c0e3fbc4e39f407b93ad250cc2ed554b9219c6 (diff) |
Convert cmake build to (mostly) use urls rather than git clones (#852)
Exception: grpc. Due to it's use of git submodules, it's not completely trivial to convert it (though probably wouldn't be too much more work.)
This helps address our build being throttled. (Maybe. This assumes github allows more fetching of tgz's than clones.) It should also speed up our build times.
The downloaded tarballs are placed into ${PROJECT_BINARY_DIR}/downloads. This allows for eventual caching in travis.
Diffstat (limited to 'cmake/external/protobuf.cmake')
-rw-r--r-- | cmake/external/protobuf.cmake | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cmake/external/protobuf.cmake b/cmake/external/protobuf.cmake index da5f11d..e1fdcbb 100644 --- a/cmake/external/protobuf.cmake +++ b/cmake/external/protobuf.cmake @@ -13,18 +13,14 @@ # limitations under the License. include(ExternalProject) -include(ExternalProjectFlags) - -ExternalProject_GitSource( - PROTOBUF_GIT - GIT_REPOSITORY "https://github.com/google/protobuf.git" - GIT_TAG "v3.5.1.1" -) ExternalProject_Add( protobuf - ${PROTOBUF_GIT} + DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/downloads + DOWNLOAD_NAME protobuf-v3.5.11.tar.gz + URL https://github.com/google/protobuf/archive/v3.5.1.1.tar.gz + URL_HASH SHA256=56b5d9e1ab2bf4f5736c4cfba9f4981fbc6976246721e7ded5602fbaee6d6869 PREFIX ${PROJECT_BINARY_DIR}/external/protobuf |