FindSoprano.cmake

Allen Winter winter at kde.org
Wed Apr 22 18:54:06 CEST 2009


On Wednesday 22 April 2009 12:08:14 pm Andreas Pakulat wrote:
> On 22.04.09 11:15:32, Allen Winter wrote:
> > Howdy,
> > 
> > It seems to me that FindSoprano.cmake needs some love.
> > 
> > In particular, it does stuff like:
> >   find_path(SOPRANO_INCLUDE_DIR
> >     NAMES
> >     soprano/soprano.h
> >     PATHS
> >     ${KDE4_INCLUDE_DIR}
> >     ${INCLUDE_INSTALL_DIR}
> >     )
> > 
> > 
> > which I think should be changed to:
> >   find_path(SOPRANO_INCLUDE_DIR
> >     NAMES
> >     soprano/soprano.h
> >     )
> > 
> > to make sure the search order is taken from CMAKE_PREFIX_PATH.
> > Right?
> 
> No, the search order is still taken from CMAKE_PREFIX_PATH preferrably, the
> two paths are just last-chance-fallbacks. So having KDE4_INCLUDE_DIR and
> INCLUDE_INSTALL_DIR is mostly just convenience. If you install soprano+kde4
> into the same prefix, but that is a non-standard one (like $HOME/kde4) you
> don't necessarily need to setup CMAKE_PREFIX_PATH.
> 
ok, something must be wrong with my setup then, because CMAKE_PREFIX_PATH
seems to be ignore for me.

hmmm.. actually, the FindSoprano.cmake from kdesupport/akonadi/cmake/modules
is the one I'm having problems with.  I wonder if the kdesupport/akonadi buildsystem
is broken somehow



More information about the Kde-buildsystem mailing list