I added a cmake_minimum_required command, no change to behaviour. This is consistent with results from the QT6 CMake scripts which contain the command.
I’ve submited a PR here containing a fix I implemented, though I’m unsure if the fix is the best suited for the CMake codebase, since I’m unfamiliar with it.
I’ll look into the tests myself and try to determine if there’s one that covers this specific situation.