summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_widgets_app_deployment
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2022-09-29 11:04:18 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2022-10-15 12:59:59 +0200
commit5ca714318c4b0c02f3b9ef98c5fc1c948c35219e (patch)
tree34819a98d34efec1983d1d36ba3a3ce09170f193 /tests/auto/cmake/test_widgets_app_deployment
parent1f7850cd464a6131367543747a092fa1c75f2830 (diff)
Don't set QT_PLUGIN_PATH in the deployment test's run environment
Otherwise we don't properly test whether the deployed executable can run without adjusting the environment. We temporarily adjust the test_widgets_app_deployment test and set CMAKE_INSTALL_LIBDIR to make the test pass. It would now fail on Linux distros where CMAKE_INSTALL_LIBDIR defaults to "lib64" but Qt is built with lib dir "lib". The next commit removes this hack. Change-Id: I63c79ef1ee23ffaeed881337fde6e9d889ecc0fe Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/cmake/test_widgets_app_deployment')
-rw-r--r--tests/auto/cmake/test_widgets_app_deployment/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_widgets_app_deployment/CMakeLists.txt b/tests/auto/cmake/test_widgets_app_deployment/CMakeLists.txt
index 60e3f0af75..9a0c4e8af1 100644
--- a/tests/auto/cmake/test_widgets_app_deployment/CMakeLists.txt
+++ b/tests/auto/cmake/test_widgets_app_deployment/CMakeLists.txt
@@ -5,6 +5,8 @@ cmake_minimum_required(VERSION 3.16)
project(deployment_api)
enable_testing()
+set(CMAKE_INSTALL_LIBDIR lib) ### temporary hack to make the test pass - remove in next commit!
+
find_package(Qt6 COMPONENTS REQUIRED Widgets Test)
qt6_standard_project_setup()