Bug 459123 - KCMUtils fails to compile statically with CMake Error "(...)requires target "kcmutils_proxy_model" that is not in any export set."
Summary: KCMUtils fails to compile statically with CMake Error "(...)requires target "...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kcmutils
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.98.0
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-14 19:06 UTC by Dawid Wróbel
Modified: 2022-09-21 08:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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