Support hddf version 1.12.2 with cmake

from where to pull hddf version 1.12.2 with cmake option.

HDF5 - Building With CMake
Doesn’t support version 1.12.2

Could you clarify your question?
If you are looking for the source files for the HDF5 software, the latest releases (with cmake files) can be found here: https://github.com/HDFGroup/hdf5/releases

If you are looking for specifically 1.12 version (which I believe has been archived by now), you can find the source files (with cmake files) here:
https://support.hdfgroup.org/archive/support/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.1/src/index.html

There are only 2 official releases listed 1.12.0 and 1.12.1 :
https://support.hdfgroup.org/archive/support/ftp/HDF5/releases/hdf5-1.12/index.html