[frameworks/kservice] src: Fix static build by exporting resource targets

Azhar Momin <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit aa945786b59beceaa705916eeebddb3b5a54abdf by Azhar Momin.
Committed on 01/08/2026 at 12:47.
Pushed by aacid into branch 'master'.

Fix static build by exporting resource targets

M  +2    -2    src/CMakeLists.txt

https://invent.kde.org/frameworks/kservice/-/commit/aa945786b59beceaa705916eeebddb3b5a54abdf

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 581d0507..5820444d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -87,7 +87,7 @@ PRIVATE
     KF6::CoreAddons   # KShell
 )
 
-qt_add_resources(KF6Service "fallback-menu" PREFIX "/org.kde.kservice" FILES fallback-applications.menu)
+qt_add_resources(KF6Service "fallback-menu" PREFIX "/org.kde.kservice" FILES fallback-applications.menu OUTPUT_TARGETS KService_RESOURCE_TARGETS)
 
 ecm_generate_headers(KService_HEADERS
   HEADER_NAMES
@@ -109,7 +109,7 @@ ecm_generate_headers(KService_HEADERS
 
 ecm_generate_qdoc(KF6Service kservice.qdocconf)
 
-install(TARGETS KF6Service EXPORT KF6ServiceTargets ${KF_INSTALL_TARGETS_DEFAULT_ARGS})
+install(TARGETS KF6Service ${KService_RESOURCE_TARGETS} EXPORT KF6ServiceTargets ${KF_INSTALL_TARGETS_DEFAULT_ARGS})
 
 install(FILES
    "${CMAKE_CURRENT_BINARY_DIR}/kservice_export.h"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.