Usage of KF5/KF6 in targets and CMake config files outside of Frameworks
heiko.becker at kde.org
Thu Mar 9 15:58:40 GMT 2023
while looking at a MR for libkcddb (part of Gear) I wondered if the
from Qt5/KF5 to Qt6/KF6 could be used to get rid of the KF5/6 prefix in
names and CMake config files for libraries that aren't acutally part of
It always seemed a bit illogical and possibly confusing to me to have e.g.
KF5Cddb as CMake config file and KF5::Cddb as target name, because it's
masquerading to be part of something (Frameworks), which isn't actually
Especially since we market Frameworks as a common group of libraries, with
common rules and policies, which may only be followed in part (or maybe not
at all) by other projects.
Changing that obviously involves some (temporary) compatibility concerns,
but that doesn't play any role with the move to Qt6/KF6. So I suggest to
use the chance and get rid of said prefix with the upcoming porting.
One example where this was done already some time ago is libkgapi:
More information about the kde-devel