HDF5 1.10.3 was released recently and they were some changes in the library that causes CGNS to fail to build. Log attached.
I had a similar issue. I had to build CGNS with BUILD_SHARED_LIBS=ON. This settings will search for hdf5 of the same type.
However, I also had to fix the src/CMakeLists.txt, because it assumes the default library type is SHARED, and it is not when BUILD_SHARED_LIBS is ON.
Is it still an issue ?