FindHDF5 causes DLLs to appear on the link line on Windows
The following line in the FindHDF5
module causes the .dll
file to be found rather than the .lib
file:
get_target_property(_lang_location ${HDF5_${_lang}_TARGET}${_suffix} LOCATION)
because the IMPORTED_LOCATION_<CONFIG>
property is the .dll
while IMPORTED_IMPLIB_<CONFIG>
is the .lib
file.
Cc: @chuck.atkins