[Kde-pim] KdePimlibs overriding CMAKE_MODULE_PATH

Christophe Giboudeaux cgiboudeaux at gmail.com
Sat Jun 13 10:38:27 CEST 2009


On Sunday 07 June 2009 12:23:20 Alex Merry wrote:
> On Sunday 07 June 2009 10:13:15 Christophe Giboudeaux wrote:
>
> OK, I thought I'd checked that, but I misread the cmake file.  Nonetheless,
> I don't think requiring KdepimLibs should prepend the KDE installation
> directory to CMAKE_MODULE_PATH - what if the application wishes to override
> a KDE- installed CMake module with one of its own?  It would have to set
> CMAKE_MODULE_PATH _after_ including KdepimLibs.  And, if it can't assume
> that CMAKE_MODULE_PATH won't be messed with like this when it tries to find
> packages, it would have to prepend its own local cmake module path after
> searching for _each_ package.
>
KDEPimLibsDependencies.cmake is there to display an error when the kdelibs 
version is too low and this file is installed in 
${DATA_INSTALL_DIR}/cmake/modules.

I think the line you mentioned is there to make sure this file can be found. 
I'll look at this during this weekend.

Christophe.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20090613/75a8eaff/attachment.sig 


More information about the Kde-buildsystem mailing list