This folder can build HDF5 and ZLIB. Pick CMAKE_INSTALL_PREFIX to be the directory you wish to install HDF5 under.
cmake -B build --install-prefix=$HOME/localOptionally, build the MPI layer (parallel HDF5)
cmake -B build --install-prefix=$HOME/local -Dhdf5_parallel=onOptionally, request a specific HDF5 release URL source archive:
cmake -B build \
-Dhdf5_url=https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5_1.14.4.3.tar.gzThen, build and install:
cmake --build build
cmake --install buildThe HDF5 compiler wrappers will be installed under the install_prefix/bin for macOS and Linux.
- non-MPI (default):
h5cc(C),h5fc(Fortran) - MPI:
h5pcc(C),h5pfc(Fortran)