On Ubuntu (at least for 22.04), installing libhdf5-dev with apt provides headers in /usr/include/hdf5/serial and the library in /usr/lib/libhdf5_serial.so. We can add a configuration test to see if these locations are available and work, so that hdf_libdir is not required for the default case.
On Ubuntu (at least for 22.04), installing
libhdf5-dev
with apt provides headers in/usr/include/hdf5/serial
and the library in/usr/lib/libhdf5_serial.so
. We can add a configuration test to see if these locations are available and work, so thathdf_libdir
is not required for the default case.