FindHDF5: use the target rather than the path

On Windows, the `LOCATION` property gets the path to the `.dll` rather
than the `.lib` which is unsuitable for linking.
1 job for findhdf5-libraries-targets
Status Job ID Name Coverage
  External
passed kwrobot-commit-check