aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/external/leveldb.cmake
diff options
context:
space:
mode:
authorGravatar rsgowman <rgowman@google.com>2018-02-27 10:34:21 -0500
committerGravatar GitHub <noreply@github.com>2018-02-27 10:34:21 -0500
commitf05888198a668b5d2aa75c2c8941a6b3b176b9c6 (patch)
tree4c109fe8e906cb18e88b39f7b20b30520177068c /cmake/external/leveldb.cmake
parenta6c0e3fbc4e39f407b93ad250cc2ed554b9219c6 (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/leveldb.cmake')
-rw-r--r--cmake/external/leveldb.cmake12
1 files changed, 4 insertions, 8 deletions
diff --git a/cmake/external/leveldb.cmake b/cmake/external/leveldb.cmake
index 60183ca..dcbef6c 100644
--- a/cmake/external/leveldb.cmake
+++ b/cmake/external/leveldb.cmake
@@ -13,7 +13,6 @@
# limitations under the License.
include(ExternalProject)
-include(ExternalProjectFlags)
if(WIN32 OR LEVELDB_ROOT)
# If the user has supplied a LEVELDB_ROOT then just use it. Add an empty
@@ -42,16 +41,13 @@ else()
$<$<CONFIG:Release>:${CMAKE_CXX_FLAGS_RELEASE}>"
)
- ExternalProject_GitSource(
- LEVELDB_GIT
- GIT_REPOSITORY "https://github.com/google/leveldb.git"
- GIT_TAG "v1.20"
- )
-
ExternalProject_Add(
leveldb
- ${LEVELDB_GIT}
+ DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/downloads
+ DOWNLOAD_NAME leveldb-v1.20.tar.gz
+ URL https://github.com/google/leveldb/archive/v1.20.tar.gz
+ URL_HASH SHA256=f5abe8b5b209c2f36560b75f32ce61412f39a2922f7045ae764a2c23335b6664
PREFIX ${PROJECT_BINARY_DIR}/external/leveldb