diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-06-15 11:46:35 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-06-22 15:04:37 +0000 |
commit | 9fe9ec20546aad5d43d26af121098a1a015c52c0 (patch) | |
tree | d757d3644a962e1e955b691dd32f56a9d0538c46 | |
parent | cbc88d38324dfb4ec316b230ac21bd7c231e947e (diff) |
Fix compilation without Qml
QuickTestUtilsPrivate is only required for tst_usertypes, which is not
compiled when Qml library isn't available, so make QuickTestUtilsPrivate
optional.
This patch amends c41500bd488b708473da758e04deb57c033d56cc.
Change-Id: I890f98c758c6a787dab3676750813ec5a4685b96
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
(cherry picked from commit 4ae71ddefd5957e0c75cc8ee63d8b93ef8c37424)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 40dc142..6b5ffe0 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,5 @@ -find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS QuickTestUtilsPrivate) +find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS QuickTestUtilsPrivate) if(QT_BUILD_STANDALONE_TESTS) # Add qt_find_package calls for extra dependencies that need to be found when building |