An improved FindHDF5.cmake in h5fortran handles modern HDF5 versions including on Windows.
The important improvements are:
- check that HDF5 compiler wrapper is able to compile and link a simple HDF5 program
- have more default directories to search for the HDF5 libraries
- work with HDF5 across versions
- work with HDF5-MPI
Before this, CMake would get confused by the Anaconda Python HDF5 compiler wrapper. This also makes Intel compiler on Windows work with HDF5.