[utilities/konsole] src: Link to KF6::DBusAddons & KF6::GlobalAccel only by its consumers
Friedrich W. H. Kossebau <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 66ff906c28836b1a81b6afa700f8145b630e54d1 by Friedrich W. H. Kossebau.
Committed on 07/08/2026 at 00:03.
Pushed by kossebau into branch 'master'.
Link to KF6::DBusAddons & KF6::GlobalAccel only by its consumers
M +10 -7 src/CMakeLists.txt
https://invent.kde.org/utilities/konsole/-/commit/66ff906c28836b1a81b6afa700f8145b630e54d1
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a6f7a66f5..81bf37489 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -96,13 +96,6 @@ if(NOT WIN32)
)
endif()
-if(HAVE_DBUS)
- list(APPEND konsole_LIBS
- KF6::DBusAddons
- KF6::GlobalAccel
- )
-endif()
-
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
#kinfo_getfile() is in libutil
list(APPEND konsole_LIBS util)
@@ -366,6 +359,11 @@ target_link_libraries(konsoleapp
KF6::NotifyConfig
KF6::Crash
)
+if(HAVE_DBUS)
+ target_link_libraries(konsoleapp
+ KF6::GlobalAccel
+ )
+endif()
set_target_properties(konsoleapp PROPERTIES
VERSION ${RELEASE_SERVICE_VERSION}
@@ -393,6 +391,11 @@ target_link_libraries(konsole
KF6::NotifyConfig
KF6::Crash
)
+if(HAVE_DBUS)
+ target_link_libraries(konsole
+ KF6::DBusAddons
+ )
+endif()
if(APPLE)
set_target_properties(konsole PROPERTIES