Force phononsettings to use Qt 5 phononsettings uses the cmake variable "QT_MAJOR_VERSION" to determine which version of Qt to use for the build. Also, currently it is built only for one Qt version, and it has no Qt-versioned name. . "QT_MAJOR_VERSION" is set as loop variable in the top-level CMakeLists.txt while iterating on the list of available Qt versions, and since the list contains "5" (if available) and then "6" (if available), this means that phononsettings will be always built with Qt 6 if available. . This is kept as local change here because there should be a better way to deal with this situation, for example version phononsettings and build it for all the Qt versions. . Since there are still more users of Qt 5 phonon at the moment, force the build of phononsettings using Qt 5. This will be revised/dropped either if upstream comes with a better solution, or there will be more Qt 6 phonon users than Qt 5.