diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-11-11 15:35:13 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-11-11 18:40:21 +0000 |
commit | e3a6555f4b69afaa3894a66fea37f135c997edf8 (patch) | |
tree | 303acdd6dc51ad088e302f78a2f3200208f65b8d | |
parent | 0a83e119e57b028cc1654654c3da8f867f5921d0 (diff) |
Make QmlIntegration a required component
Since commit c42fd8a4314d63 , tts/CMakeLists.txt needs
Qt::QmlIntegration to be available at configure time.
Fixes: QTBUG-108381
Change-Id: I873d0f130065b7ac8c60acdb6240504b3db32588
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 513fcd8e607cf30ef5fff3e205964ea8e2f75da0)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d8f7b90..2d43451 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,11 @@ project(QtSpeech ) find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) -find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Gui Widgets Test Multimedia Qml) +find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Gui Widgets Test Multimedia Qml QmlIntegration) + +if(NOT TARGET Qt::QmlIntegration) + message(NOTICE "Skipping the build as the condition \"TARGET Qt::QmlIntegration\" is not met.") + return() +endif() qt_build_repo() |