Skip to content

Commit 9a574ab

Browse files
committed
use HDF5 2.2 by default
1 parent b12d739 commit 9a574ab

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ h5fortran is designed for easy use using static or shared linking from your proj
3333
* CMake + Git submodule
3434
* Fortran Package Manager (fpm)
3535

36-
If using CMake, h5fortran will automatically build the HDF5 library (and Zlib if HDF5 2.x) from source if a compiler-compatible HDF5 is not found on the system.
36+
If using CMake, h5fortran will automatically build the HDF5 library and Zlib from source if a compiler-compatible HDF5 is not found on the system.
37+
The default version of HDF5 built if needed is 2.2.
38+
h5fortran needs at least HDF5 1.10.
39+
3740
HDF5 auto-build options include:
3841

3942
* To disable the auto-build of HDF5 use `cmake --preset no-build-hdf5`

cmake/hdf5.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include(CheckSourceCompiles)
99

1010

1111
if(NOT DEFINED h5fortran_hdf5_req)
12-
set(h5fortran_hdf5_req "2.1patch")
12+
set(h5fortran_hdf5_req "2.2")
1313
endif()
1414
# HDF5 2.x requires CMake >= 3.26, but the benefits are so great that this is worthwhile
1515

cmake/libraries.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"2.0": "https://github.com/HDFGroup/hdf5/archive/refs/tags/2.0.0.tar.gz",
66
"2.1": "https://github.com/HDFGroup/hdf5/archive/refs/tags/2.1.1.tar.gz",
77
"2.1patch": "https://github.com/HDFGroup/hdf5/archive/353da6cce4228f0520585dc12b9b77ed7032d59d.tar.gz",
8-
"$comment": "vital commit for dev is 7f79a4e3c79b6ea2b6a5dee81e9f624cceb51bdd on March 18, 2026, which isn't in tag 2.1.1. 64036c6d03d77ec84959ec0257732e3efb6d3571 is another good commit that works for Windows oneAPI for example."
8+
"$comment": "vital commit for dev is 7f79a4e3c79b6ea2b6a5dee81e9f624cceb51bdd on March 18, 2026, which isn't in tag 2.1.1. 64036c6d03d77ec84959ec0257732e3efb6d3571 is another good commit that works for Windows oneAPI",
9+
"2.2": "https://github.com/HDFGroup/hdf5/archive/refs/tags/2.2.0.tar.gz"
910
}
1011
}

0 commit comments

Comments
 (0)