FindHDF5: build HDF5::HDF5 properly when release and debug are found
When HDF5_LIBRARIES
uses the optimized;…;debug;…
pattern, setting
INTERFACE_LINK_LIBRARIES
does not work as intended. To handle this
case, detect it and build a generator expression in order to use it as
expected from a usage requirement.
Fixes: #21637 (closed)
Cc: @krthie @brad.king
Backport: release