fcitx/fcitx5-qt

wrong target in qt6/platforminputcontext/CMakeLists?

Closed this issue · 0 comments

Should it be as follow?

diff --git a/qt6/platforminputcontext/CMakeLists.txt b/qt6/platforminputcontext/CMakeLists.txt
index 19ab34a..a42f93f 100644
--- a/qt6/platforminputcontext/CMakeLists.txt
+++ b/qt6/platforminputcontext/CMakeLists.txt
@@ -50,8 +50,8 @@ target_link_libraries(fcitx5platforminputcontextplugin-qt6
                           XKBCommon::XKBCommon
                          )
 if (ENABLE_X11)
-    target_link_libraries(fcitx5platforminputcontextplugin XCB::XCB)
-    target_compile_definitions(fcitx5platforminputcontextplugin PRIVATE "-DENABLE_X11")
+    target_link_libraries(fcitx5platforminputcontextplugin-qt6 XCB::XCB)
+    target_compile_definitions(fcitx5platforminputcontextplugin-qt6 PRIVATE "-DENABLE_X11")
 endif()

 if (ENABLE_QT6_WAYLAND_WORKAROUND)