FindHDF5: Revert "Add explicit library location instead of guessed ..."
Revert !7105 (merged).
The old behavior was not a guessed library name, but the name of an
imported target that can contain per-config locations and encode usage
requirements. Although find modules do not normally return their
imported target names in the _LIBRARIES
variable, FindHDF5 has done so
since !373 (merged).
Fixes: #23667 (closed)
Issue: #23261
Backport: release
Edited by Brad King