krita CMake module search order wrong

Alexander Neundorf neundorf at kde.org
Fri Jan 22 19:51:47 CET 2010


On Friday 22 January 2010, Cyrille Berger wrote:
> On Friday 22 January 2010, Matthew Woehlke wrote:
> > I've been unable to build krita for some time, and finally decided to
> > investigate closer. Upon inspection, it's not too hard to spot the
> > problem:
> >
> > HAVE_GLEW: '1'
> > GLEW_LIBRARIES: ''
> >
> > On further inspection, it turns out that FindGLEW.cmake (from
> > koffice/cmake/modules) isn't even being invoked. Instead it seems to be
> > using the FindGLEW.cmake from $KDEDIR/share/apps/cmake/modules.

Where does that come from ?
It's not from kdelibs.
I think only kdelibs gives compatibility guarantees, so I wouldn't rely on it 
being there.

> > I can fix the problem by manually copying the module, but methinks the
> > search order is wrong... Thoughts?

Set CMAKE_MODULE_PATH so that the koffice module path is prepended to the 
existing one. I.e. do that after find_package(KDE4).

Alex


More information about the Kde-buildsystem mailing list