From 0bacdcaaa4ac11348cc5562e94eac1e5bdb58789 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 23 Sep 2023 12:28:15 +0400 Subject: [PATCH] Fix linking order for plugins using QtDBus --- external/qt/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/external/qt/CMakeLists.txt b/external/qt/CMakeLists.txt index 3a8e29d..7946db8 100644 --- a/external/qt/CMakeLists.txt +++ b/external/qt/CMakeLists.txt @@ -212,9 +212,11 @@ else() $ ) if (TARGET Qt::DBus) - list(APPEND qt_libs + list(PREPEND qt_libs plugins/platforminputcontexts/${qt_lib_prefix}ibusplatforminputcontextplugin plugins/platformthemes/${qt_lib_prefix}qxdgdesktopportal + ) + list(APPEND qt_libs lib/${qt_lib_prefix}Qt${QT_VERSION_MAJOR}DBus lib/${qt_lib_prefix}Qt${QT_VERSION_MAJOR}Core )