CMake is not reliable in finding needed libraries for HDF5 and Boost. As a workaround librt has been added to HDF5_LIBRARIES and Boost_LIBRARIES, but librt is not needed (and not available on macOS).
librt
HDF5_LIBRARIES
Boost_LIBRARIES