CMake: Fix build for Qt < 6.7


The qt_build_repo_post_process was introduced in Qt 6.7. The qtqa repo
doesn't follow the usual branch pattern and needs to build with new and
old Qt versions.

This amends commit 65d152268065a2237daa08d69a78622b68f32a53.

Change-Id: Iad27476bb9ba4db3698c288fcb5f9099710134c8
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
commitb3a4f545e15555aafe2de3bd699e7bc532a716ff
parent6f52a7e0f943eca0c5df2819da1de85279bb6e4d
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeThu, 5 Oct 2023 20:21:11 +0200