This folder can build HDF5 and ZLIB. Pick CMAKE_INSTALL_PREFIX to be the directory you wish to install HDF5 under.
cmake -B build -DCMAKE_INSTALL_PREFIX=~/local
cmake --build build
Optionally, build the MPI layer (parallel HDF5)
cmake -B build -DCMAKE_INSTALL_PREFIX=~/local -Dhdf5_parallel=on
cmake --build build
Optionally, request a specific HDF5 release URL source archive and/or ZLIB URL source archive URL:
cmake -B build \
-Dhdf5_url=https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5_1.14.4.3.tar.gz \
-Dzlib_url=https://github.com/zlib-ng/zlib-ng/archive/refs/tags/2.2.1.tar.gz
The 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)