cmake - specify cxx component for hdf5 package

by default it's targeting `C` and this was part of the issue why ci.yml was failing
This commit is contained in:
Andrej730
2025-10-01 17:02:32 +05:00
parent 60617eecce
commit 785cf56621
+1 -1
View File
@@ -796,7 +796,7 @@ if(HDF5_SUPPORT)
# If it failed, still try to find as a module.
# E.g. on Ubuntu `libhdf5-dev` doesn't provie hdf5-config.cmake.
# Will automatically fill HDF5_LIBRARIES and HDF5_INCLUDE_DIR.
find_package(HDF5)
find_package(HDF5 COMPONENTS CXX)
if(NOT HDF5_INCLUDE_DIR)
message(
FATAL_ERROR