after looking through the cmake script, i tried adding hdf5 headers, specifically i installed "libhdf5-serial-dev" package and i now get cgns support turned on.