Building cmake from source on linux Fedora 37

Hello, Salvatore,
The Fedora upstream package doesn’t use the bundled cmlibarchive in favour of upstream libarchive (see RPM package spec here: Tree - rpms/cmake - src.fedoraproject.org)

You may try the --no-system-libs flag for boostrap script, like it was done in the same spec (it also has the rpm condition about boostrap mode)…

Hope this helps.
Best regards,
Alex.