aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-08-25 12:52:19 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-08-25 14:03:11 +0200
commit0cd13b6ee0ad187892e6521478506bd191c9859e (patch)
tree10e7e9a90184f9481c603fc61d9dfc9e544a144d /tests/auto/cmake
parenteb76b9b9005b3cdd8c91584c2a0f3f5686fc2b1d (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 Pick-to: 6.2 Task-number: QTBUG-95144 Change-Id: I83d2fbb031fd1be3e974b40d3bdcf36f0dc95e2e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/cmake')
-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