Skip to content

FindHDF5: find_program only searches HDF5_ROOT when specified

Compare
Choose a tag to compare
@scivision scivision released this 01 Oct 16:46
· 465 commits to main since this release
797764b

Since h5cc compiler wrappers are optional, search only HDF5_ROOT when specified, otherwise Anaconda wrappers may get picked up, causing link to fail.

Fortran module search is first under HDF5 C include directory to handle case where primary HDF5 library was not compiled with Fortran interface, which would usually cause link failure. If HDF5_ROOT specified, search Fortran hdf5.mod only under that.