From 3c77fd7500049cd906748232c29bb768721194f9 Mon Sep 17 00:00:00 2001 From: scivision Date: Fri, 19 Jan 2024 00:37:46 -0500 Subject: [PATCH] hdf5: use archive to speed download --- cmake/hdf5.cmake | 7 +------ cmake/libraries.json | 3 +-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/cmake/hdf5.cmake b/cmake/hdf5.cmake index 3b58d49..744d25f 100644 --- a/cmake/hdf5.cmake +++ b/cmake/hdf5.cmake @@ -70,14 +70,9 @@ if(MPI_ROOT) endif() string(JSON hdf5_url GET ${json} hdf5 url) -if(NOT hdf5_tag) - string(JSON hdf5_tag GET ${json} hdf5 tag) -endif() ExternalProject_Add(HDF5 -GIT_REPOSITORY ${hdf5_url} -GIT_TAG ${hdf5_tag} -GIT_SHALLOW true +URL ${hdf5_url} CMAKE_ARGS ${hdf5_cmake_args} BUILD_BYPRODUCTS ${HDF5_LIBRARIES} DEPENDS ZLIB diff --git a/cmake/libraries.json b/cmake/libraries.json index 59c7ec9..f804484 100644 --- a/cmake/libraries.json +++ b/cmake/libraries.json @@ -8,7 +8,6 @@ "tag": "2.1.6" }, "hdf5": { - "url": "https://github.com/HDFGroup/hdf5.git", - "tag": "hdf5-1_14_3" + "url": "https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_14_3.tar.gz" } }