Cmake can't find hdf5

I need to install DAKOTA(CFD), but during the installation, an error occurs that cmake cannot find HDF5。
If I use sudo apt-get install libhdf5-dev to install version 1.10.0 Cmake can find it, but the minimum version I need is 1.10.4 or higher.
When I downloaded version 1.10.4 or higher on the Internet, cmake could not find the version I downloaded.
My installation path is /usr/local/hdf5

This is error message for me
CMake Error at /usr/local/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS HDF5_HL_LIBRARIES) (found version “”) Call Stack (most recent call first): /usr/local/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) /usr/local/share/cmake-3.25/Modules/FindHDF5.cmake:1007 (find_package_handle_standard_args) cmake/DakotaFindSystemTPLs.cmake:126 (find_package) CMakeLists.txt:185 (dakota_find_hdf5)

Have you tried to set HDF5_ROOT=/usr/local/hdf5?