cmake 3.28 and importing C++ headers in gcc

It would be useful to know, what exactly has failed and with what error messages.
If you shared your current CMake project, it would be helpful too.