From 53d58f6ce52e0a2b1a998f2a509c4346b0e5ad7c Mon Sep 17 00:00:00 2001 From: Michael Tao Date: Tue, 7 Nov 2023 12:02:37 -0500 Subject: [PATCH] using zip for hdf5 and downgrading to 1.14.2 --- cmake/recipes/hdf5.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/recipes/hdf5.cmake b/cmake/recipes/hdf5.cmake index 46e7307..1aff211 100644 --- a/cmake/recipes/hdf5.cmake +++ b/cmake/recipes/hdf5.cmake @@ -28,7 +28,10 @@ option(HDF5_ENABLE_EMBEDDED_LIBINFO "" OFF) set (HDF5_EXTERNALLY_CONFIGURED 1) include(CPM) -CPMAddPackage("gh:HDFGroup/hdf5#hdf5-1_14_3") +set(HDF5_RELEASE_TAG hdf5-1_14_3) + +#we fetch the zip file to get prebuilt files (and avoid a perl dependency) +CPMAddPackage("https://github.com/HDFGroup/hdf5/releases/download/${HDF5_RELEASE_TAG}/${HDF5_RELEASE_TAG}.zip") target_link_libraries(hdf5-static INTERFACE hdf5_hl-static) add_library(hdf5::hdf5 ALIAS hdf5-static)