Skip to content

FindHDF5: Fix Fortran compiler interrogation without HL library

When the HDF5 HL library is not available, FindHDF5 with Fortran does not work. The problem is because cmake_hdf5_test.f90 tries to "use h5lt" and "use h5ds", which comes from the HL library. Then the basic compiler check fails completely.

The two "use" lines were added by commit 00405af0 in CMake 3.6 along with the rest of the check. Remove them.

Fixes: #22890 (closed)
Topic-rename: FindHDF5-Fortran-without-HL

Edited by Brad King

Merge request reports