Skip to content

Fix build with older ECM versions

Ahmad Samir requested to merge work/ahmad/qt5-6 into master

QT_MAJOR_VERSION is defined automatically by QtVersionOption (since ECM 5.82) which is included by KDEInstallDirs. For older ECM, if QT_MAJOR_VERSION isn't already set, default to 5.

There is similar to what's used in polkit-qt-1 (which doesn't depend/use ECM at all).

Merge request reports