Skip to content

Use standard ECM facilities to determine QT_MAJOR_VERSION

Andreas Sturmlechner requested to merge work/asturmlechner/cmake into master

This problem has been solved within ECM long ago. Set -DQT_MAJOR_VERSION=6 to build with KF6/Qt6.

  • Simplify Qt6 CMake decisions quite a bit
  • Fix all occurrences of QT_VERSION_MAJOR and VERSION_MAJOR in CMakeLists.txt.
  • Drop futile automagic FIND_PACKAGE(QT NAMES Qt6 Qt5) call
  • ECM minimum version can not be raised to KF_MIN_VERSION (5.90.0 currently) yet, this is causing build errors - so ECM_MIN_VERSION is added for now
Edited by Andreas Sturmlechner

Merge request reports

Loading