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/nanopb.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/nanopb.cmake')
-rw-r--r-- | cmake/external/nanopb.cmake | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/cmake/external/nanopb.cmake b/cmake/external/nanopb.cmake index d09c668..f68af0b 100644 --- a/cmake/external/nanopb.cmake +++ b/cmake/external/nanopb.cmake @@ -11,13 +11,6 @@ # limitations under the License. include(ExternalProject) -include(ExternalProjectFlags) - -ExternalProject_GitSource( - NANOPB_GIT - GIT_REPOSITORY "https://github.com/nanopb/nanopb.git" - GIT_TAG "0.3.8" -) set( NANOPB_PROTOC_BIN @@ -29,7 +22,9 @@ ExternalProject_Add( DEPENDS protobuf - ${NANOPB_GIT} + DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/downloads + URL https://github.com/nanopb/nanopb/archive/nanopb-0.3.8.tar.gz + URL_HASH SHA256=f192c7c7cc036be36babc303b7d2315d4f62e2fe4be28c172cfed4cfa0ed5f22 BUILD_IN_SOURCE ON |