diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 34f4f63f1c..bec0f74ac4 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -32,7 +32,7 @@ target_link_libraries( testVirtualDesktops
                        Qt5::Test
                        Qt5::Widgets
                        KF5::KI18n
-                       KF5::XmlGui
+                       KF5::GlobalAccel
                        KF5::KWindowSystem
 )