aboutsummaryrefslogtreecommitdiff
path: root/tests/KDEInstallDirsTest/vars_in_sync
diff options
context:
space:
mode:
authorVolker Krause <vkrause@kde.org>2022-01-23 17:35:40 +0100
committerAhmad Samir <a.samirh78@gmail.com>2022-01-25 09:05:16 +0000
commitb25b7df554da25889f7839ac09d8051e018d1e59 (patch)
treef0732a4f7b719f0adda3c4ed30157baa90c515ce /tests/KDEInstallDirsTest/vars_in_sync
parentb692afe0cb77141d2c0048b4433857951bb1b3ba (diff)
downloadextra-cmake-modules-b25b7df554da25889f7839ac09d8051e018d1e59.tar.gz
extra-cmake-modules-b25b7df554da25889f7839ac09d8051e018d1e59.tar.bz2
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.
Diffstat (limited to 'tests/KDEInstallDirsTest/vars_in_sync')
-rw-r--r--tests/KDEInstallDirsTest/vars_in_sync/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
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)