The CMake phase of Attica says "Could not find a package configuration file provided by "Qt5" (requested version 6.4.0) I think BUILD_WITH_QT6 just needs to default to being on now.
https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/326