Getting ecm files from the ECM package

Alexander Neundorf neundorf at kde.org
Wed Oct 30 20:19:43 UTC 2013


On Wednesday 30 October 2013, Stephen Kelly wrote:
> Hello,
> 
> Soon I will be replacing code like
> 
>  find_package(KF5 REQUIRED CMake Compiler InstallDirs)
> 
> with
> 
>  include(KDEInstallDirs)
>  include(KDECMakeSettings)
>  include(KDECompilerSettings)
> 
> As I've said before, it makes no sense that we have to find KF5 in order to
> build KF5, so I'm going to 'fix' that.

my idea behind that was that it shouldn't matter for the buildsystem whether 
you are building a 3rd party library, which uses some subset of KF5 tier1 and 
tier2 (and tier3) libraries, or whether you are building a KF5 tier3 library, 
which uses some tier1 and tier2 libraries.
Both have to find those KF5 libraries, and with FindKF5.cmake already being 
available both can use the same e.g.

find_package(KF5 ... COMPONENTS karchive solid kcompletion)

call in their CMakeLists.txt and get the same results.
And if this works for tier3 libs, why not just do the same in tier2 and also 
in tier1...

It's certainly a matter of taste how important this feature is considered, but 
it's not completely nonsense.

Alex


More information about the Kde-frameworks-devel mailing list