[SyneRBI/SIRF-SuperBuild] HDF5_REQUIRED_VERSION 1.8 causes problems for HDF5 with hdf5-config.cmake (Issue #974)

4 views
Skip to first unread message

Kris Thielemans

unread,
Nov 26, 2025, 9:22:06 PM11/26/25
to SyneRBI/SIRF-SuperBuild, Subscribed
KrisThielemans created an issue (SyneRBI/SIRF-SuperBuild#974)

We set HDF5_REQUIRED_VERSION to 1.8, and thus do find_package(HDF5 1.8 REQUIRED). However, HDF5 exports its hdf5-config-version.cmake to require MAJOR and MINOR to be the same. Therefore, FindHDF5.cmake refuses to use the config version, and falls back on finding h5cc etc. That can then fail for other reasons (e.g. it isn't installed or doesn't work, as is the in conda installed HDF5 when cxx-compiler is not installed).

In practice however, we haven't seen any problems with much more recent versions of HDF5, so requiring 1.8 is the wrong thing to do.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <SyneRBI/SIRF-SuperBuild/issues/974@github.com>

Kris Thielemans

unread,
Nov 28, 2025, 10:35:45 AM11/28/25
to SyneRBI/SIRF-SuperBuild, Subscribed

Closed #974 as completed via aceacb6.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <SyneRBI/SIRF-SuperBuild/issue/974/issue_event/21244766029@github.com>

Reply all
Reply to author
Forward
0 new messages