That looks correct to me. Try starting in a fresh directory. If you’d like to use Qt6, there’s no reason to provide Qt5_DIR
values. And if it does end up in the cache after running cmake, it means something is trying to find Qt5 and linking against it.