Bug 459123

Summary: KCMUtils fails to compile statically with CMake Error "(...)requires target "kcmutils_proxy_model" that is not in any export set."
Product: [Frameworks and Libraries] frameworks-kcmutils Reporter: Dawid Wróbel <me>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.98.0   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:

Description Dawid Wróbel 2022-09-14 19:06:55 UTC
SUMMARY
KCMUtils fails to compile statically with following error:

-- Configuring done
CMake Error: install(EXPORT "KF5KCMUtilsTargets" ...) includes target "KF5KCMUtils" which requires target "kcmutils_proxy_model" that is not in any export set.


STEPS TO REPRODUCE
1. build the project with -DBUILD_SHARED_LIBS=OFF switch

OBSERVED RESULT
cmake fails to configure project

EXPECTED RESULT
Should work just fine

SOFTWARE/OS VERSIONS
macOS: 12.6 
Qt Version: 5.15.6
Comment 1 Bug Janitor Service 2022-09-14 20:26:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kcmutils/-/merge_requests/104
Comment 2 Dawid Wróbel 2022-09-21 08:46:27 UTC
Git commit 7d88a75f3592c7f3f3f43863d050f229cc4b0deb by Dawid Wróbel.
Committed on 20/09/2022 at 11:32.
Pushed by wrobelda into branch 'master'.

Fix missing kcmutils_proxy_model export in static builds

M  +4    -0    src/core/CMakeLists.txt

https://invent.kde.org/frameworks/kcmutils/commit/7d88a75f3592c7f3f3f43863d050f229cc4b0deb