Skip to content

Commit

Permalink
hdf5: use archive to speed download
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 19, 2024
1 parent 33e594a commit 3c77fd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions cmake/hdf5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions cmake/libraries.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 3c77fd7

Please sign in to comment.