Bug 477975

Summary: do not link KF::DocTools, it is not used in the code
Product: [Applications] Haruna Reporter: Nick Korotysh <tevute56>
Component: genericAssignee: george fb <georgefb899>
Status: RESOLVED FIXED    
Severity: task Keywords: qt6
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: chnages to build with Qt6 and no KDocTools

Description Nick Korotysh 2023-12-03 09:04:56 UTC
Created attachment 163805 [details]
chnages to build with Qt6 and no KDocTools

SUMMARY
***
KF6::DocTools is listed in target_link_libraries() in src/CMakeLists.txt, but it is not required - it is not used in code, only some tools from kdoctools package are used for documentation generation.
***


STEPS TO REPRODUCE
1. remove kdoctools package
2. run cmake, everything is ok
3. build

OBSERVED RESULT
build failed, KDocTools is required to link the application

EXPECTED RESULT
successful build, as KDocTools is optional package (according to root CMakeLists.txt)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux/KDE Plasma 6 Beta, Wayland
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
doc/CMakeLists.txt also needs to be updated - it checks only for KF5DocTools
Comment 1 george fb 2023-12-10 11:57:39 UTC
Git commit 6e19c9e65f99ea02088e71dbc98045eeca600c07 by George Florea Bănuș.
Committed on 10/12/2023 at 12:56.
Pushed by georgefb into branch 'master'.

cmake: don't link to KF6::DocTools

M  +1    -1    doc/CMakeLists.txt
M  +0    -1    src/CMakeLists.txt

https://invent.kde.org/multimedia/haruna/-/commit/6e19c9e65f99ea02088e71dbc98045eeca600c07