aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-08-25 12:52:19 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-08-25 16:47:50 +0000
commitdc1f0621e1ae939e3ee67215c488e40980e5d2de (patch)
tree984126ea58525b38b1a4647ce1d540271370dc6c /tests
parente71136c606a46f9db4e621a629e513fc62953e52 (diff)
CMake: Fix tooling_imports test to pass with a static Qt build
The executable needs to link to Gui so that the static QPA plugin is also linked in. Linking just against Test is not sufficient, because it does not depend on Gui. Amends da8d8da03f66331f66ac8d08f0f1b957966e885d Task-number: QTBUG-95144 Change-Id: I83d2fbb031fd1be3e974b40d3bdcf36f0dc95e2e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 0cd13b6ee0ad187892e6521478506bd191c9859e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/cmake/tooling_imports/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/cmake/tooling_imports/CMakeLists.txt b/tests/auto/cmake/tooling_imports/CMakeLists.txt
index 5e275f0739..514f1ac949 100644
--- a/tests/auto/cmake/tooling_imports/CMakeLists.txt
+++ b/tests/auto/cmake/tooling_imports/CMakeLists.txt
@@ -17,7 +17,7 @@ add_subdirectory(First)
add_subdirectory(Second)
qt_add_executable(cmake_test main.cpp)
-target_link_libraries(cmake_test PRIVATE Qt6::Test)
+target_link_libraries(cmake_test PRIVATE Qt6::Test Qt6::Gui)
qt_add_qml_module(cmake_test
URI Test