openPMD / openPMD-api

:floppy_disk: C++ & Python API for Scientific I/O
https://openpmd-api.readthedocs.io
GNU Lesser General Public License v3.0
138 stars 51 forks source link

Fix CMake: HDF5 Libs are PUBLIC #1520

Closed ax3l closed 1 year ago

ax3l commented 1 year ago

We do not yet use FindHDF5.cmake CMake targets and thus need to ensure the libs are propagated properly (they are not consumed necessarily as private)

First seen when building with -Wl,--disable-new-dtags for RPATH over newer RUNPATH.

FindHDF5.cmake introduced targets in 3.19 but changed them again in 3.20+: