Skip to content

Commit

Permalink
qtquick: warn that module build isn't supported with Qt < 6.8
Browse files Browse the repository at this point in the history
We have a workaround for QTBUG-101146, but it only works with Qt
>= 6.8 (and maybe 6.7, untested).

The generated type registrations with newer Qt are guarded with
_has_include, so it's fine if we have C++ elements in subfolders not
in include path
  • Loading branch information
iamsergio committed Jan 27, 2025
1 parent cce8533 commit f629131
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,13 @@ if(KDDW_FRONTEND_QTWIDGETS OR KDDW_FRONTEND_QTQUICK)
set(KDDW_FRONTEND_QT ON)
endif()

if(KDDockWidgets_QML_MODULE AND Qt6Core_VERSION VERSION_LESS "6.8.0")
# We have workarounds for QTBUG-101146, but only since 6.8 the generated includes are guarded
# with _has_include
message(WARNING "KDDockWidgets_QML_MODULE=ON ignored. Only available since Qt 6.8.")
set(KDDockWidgets_QML_MODULE OFF)
endif()

if(KDDockWidgets_QML_MODULE AND (NOT KDDW_FRONTEND_QTQUICK OR NOT KDDockWidgets_QT6))
message(WARNING "KDDockWidgets_QML_MODULE=ON ignored. Only available for QtQuick on Qt6.")
endif()
Expand Down

0 comments on commit f629131

Please sign in to comment.