Skip to content

[CMake] Suppress hdf5 compiler wrapper checks on Conan and !MSVC.

Lars Bilke requested to merge bilke/ogs:suppress-hdf5-warning into master

Suppresses (misleading) errors such as:

-- HDF5 C compiler wrapper is unable to compile a minimal HDF5 program.

If hdf5 is successfully found it just prints (on the first CMake-run):

-- Found HDF5: ~/.conan/data/hdf5/1.12.0/_/_/package/a24156477f4f00ae83ffd3548539d546ffc1c599/lib/libhdf5.a (found version "1.12.0") 

cc: @nagelt

Merge request reports