Skip to content

Fix HDF5 by using `configure` rather than CMake

Dan Guest requested to merge (removed):fix-hdf5-using-configure into master

This is meant as another option to merging !205 (closed).

The other merge request uses CMake to build HDF5, which has an issue in that it doesn't build h5c++. Somewhat paradoxically, the FindHDF5.cmake module that comes with cmake tries to use h5c++, i.e. it only works if HDF5 was not built using CMake. The result is that we can't use CMake's builtin modules out of the box.

This merge request just builds HDF5 using the included configure script. It has the advantage that other applications which use the HDF5 find module should work out of the box. There are still some odd text parsing tricks required to feed HDF5 the right version of zlib, but overall this solution seems a bit cleaner than the CMake building option.

Merge request reports