From b25b7df554da25889f7839ac09d8051e018d1e59 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Sun, 23 Jan 2022 17:35:40 +0100 Subject: Adapt KDEInstallDirs unit test to consider the new version-less variables Fixes unit tests with Qt6 and identified the missing definition of the full path variables for aliases. --- tests/KDEInstallDirsTest/vars_in_sync/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/KDEInstallDirsTest/vars_in_sync') diff --git a/tests/KDEInstallDirsTest/vars_in_sync/CMakeLists.txt b/tests/KDEInstallDirsTest/vars_in_sync/CMakeLists.txt index 4db78036..dea61594 100644 --- a/tests/KDEInstallDirsTest/vars_in_sync/CMakeLists.txt +++ b/tests/KDEInstallDirsTest/vars_in_sync/CMakeLists.txt @@ -26,7 +26,10 @@ foreach(suffix ${var_suffixes}) endif() endforeach() -assert_var_defined(KF5_INSTALL_TARGETS_DEFAULT_ARGS) +assert_var_defined(KF_INSTALL_TARGETS_DEFAULT_ARGS) +if (QT_MAJOR_VERSION EQUAL "5") + assert_var_defined(KF5_INSTALL_TARGETS_DEFAULT_ARGS) +endif() assert_var_defined(KDE_INSTALL_TARGETS_DEFAULT_ARGS) if(NOT KDE_INSTALL_DIRS_NO_CMAKE_VARIABLES AND NOT KDE_INSTALL_DIRS_NO_DEPRECATED) -- cgit v1.2.1