ITK issue, HDF5 CXX compiler wrapper, ANTs installation

Hello ITKers,

My name is Suren. I am having an issue while installing ANTs in Mac Big Sur. It says

"HDF5 CXX compiler wrapper is unable to compile a minimal HDF5 program.
“HDF5 C compiler wrapper is unable to compile a minimal HDF5 program.”

I am waiting for your favorable response.

I have attached a screenshot.

This is a support forum for ITK, not ANTs. The proper place for this question would be ANTs issues.

But you should probably update the question before posting it there. Did you follow the build instructions? Did you change some settings or kept the defaults?