Fix KDDockWidgetsConfig to require the proper Qt version

And for Qt5X11Extras we only require it if building the Qt5 one
This commit is contained in:
Albert Astals Cid
2021-08-11 16:26:10 +02:00
parent e4671f175c
commit 5cc7a0864b

View File

@@ -11,12 +11,12 @@
include(CMakeFindDependencyMacro)
find_dependency(Qt5Widgets REQUIRED)
find_dependency(Qt@Qt_VERSION_MAJOR@Widgets REQUIRED)
if (@KDDockWidgets_QTQUICK@)
find_dependency(Qt5Quick REQUIRED)
find_dependency(Qt@Qt_VERSION_MAJOR@Quick REQUIRED)
endif()
if (NOT WIN32 AND NOT APPLE AND NOT EMSCRIPTEN)
if (NOT WIN32 AND NOT APPLE AND NOT EMSCRIPTEN AND NOT @KDDockWidgets_QT6@)
find_dependency(Qt5X11Extras REQUIRED)
endif()