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

CMake: Warn and Continue on Empty HDF5_VERSION #1512

Closed ax3l closed 1 year ago

ax3l commented 1 year ago

Seen on Conda-Forge for arm64 on macOS for HDF5 1.14.1

https://github.com/conda-forge/openpmd-api-feedstock/pull/107

rhaas80 commented 1 month ago

This still fails to detect the emtpy string on NERSC's Perlmutter (using CC). Would need to be "${HDF5_VERSION}" STREQUAL "" to detect this it seems (HDF5_VERSION is not even defined it seems).