Skip to content

FindHDF5: Tolerate failure during compiler interrogation

Axel Huebl requested to merge ax3l/cmake:fix-findHDF5compilerFileExists into master

Check that the file that is accessed via file(STRINGS...) truly exists.

This is not the case in some EMSCRIPTEN/WebASM builds where we want to overwrite the HDF5 find logic manually. The missing check here prevents that one can overwrite the search logic in exotic environments.

X-ref: https://github.com/pyodide/pyodide/pull/2169
Backport: release
Topic-rename: FindHDF5-info-binary-exists

Edited by Brad King

Merge request reports