Commit 49390f6f authored by Heiko Becker's avatar Heiko Becker
Browse files

CMake: Fix condition to also handle Qt6Quick

While at it, also remove the duplicate find_package(KF5CoreAddons)
invocation. It's searched as a required dependency only a few lines
further up.
parent 08a310f9
Pipeline #225117 passed with stage
in 2 minutes and 52 seconds
......@@ -10,9 +10,9 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
WindowSystem)
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} OPTIONAL_COMPONENTS Quick)
set(BREEZE_HAVE_QTQUICK ${Qt5Quick_FOUND})
set(BREEZE_HAVE_QTQUICK ${Qt${QT_MAJOR_VERSION}Quick_FOUND})
if( BREEZE_HAVE_QTQUICK )
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons Kirigami2)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Kirigami2)
endif()
if (TARGET Qt5::Core)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment