[Kde-pim] KdePimlibs overriding CMAKE_MODULE_PATH

Christophe Giboudeaux cgiboudeaux at gmail.com
Sun Jun 7 10:10:29 BST 2009


On Sunday 07 June 2009 01:39:21 Alex Merry wrote:
> In KdepimLibsConfig.cmake.in, which is used to generate a file included
> when you do find_package(KdepibLibs), the KdepimLibs cmake module directory
> (typically the same as the KDE cmake module directory) is added to the
> front of CMAKE_MODULE_PATH.
>
> If an application/module/whatever sets its CMAKE_MODULE_PATH to something
> local before calling find_package(KdepibLibs), as kdenetwork does for
> example, the local cmake module directory is overridden by the installed
> KDE one.  This leads to things like the wrong
> FindLibKNotificationItem-1.cmake file being included by KGet, and the
> kdenetwork build failing.

kdepimlibs doesn't install FindLibKNotificationItem-1.cmake...nor does 
kdelibs. 

If you have one installed, that only means you never wipe your installation 
dir. See r970196.


> My question: is the correct solution to change KdepimLibsConfig.cmake.in to
> append (rather than prepend) its directory to CMAKE_MODULE_PATH?  Is this
> likely to cause any other problems?  And should this be documented
> somewhere?

The correct solution is deleting FindLibKNotificationItem-1.cmake from your 
installation dir.

Christophe.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090607/d8596999/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list