Skip to content

Use Qt CMake version-less targets

Ahmad Samir requested to merge work/ahmad/targets into master

We only need to use QT_MAJOR_VERSION in the find_package() calls, however using the targets after that, we can use the version-less ones.

Thanks to Christophe Giboudeaux for pointing that out.

See: https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html

Merge request reports