cmake kdelibs bails out if dbusmenu-qt is missing

Alexander Neundorf neundorf at kde.org
Mon Jul 26 22:37:57 CEST 2010


On Monday 05 July 2010, Ingo Klöcker wrote:
> On Monday 05 July 2010, Andreas Pakulat wrote:
> > On 05.07.10 10:56:16, Ingo Klöcker wrote:
> > > Hi,
> > >
> > > I'm using CMake 2.6.4. When I tried to cmake kdelibs 4.5 it bailed
> > > out with the following error instead of properly reporting the
> > > missing package:
> > >
> > > CMake Error at
> > > cmake/modules/FindPackageHandleStandardArgs.cmake:139
> > >
> > > (MESSAGE):
> > >   Could not find dbusmenu-qt; available at
> > >   http://people.canonical.com/~agateau/dbusmenu/ (missing:
> > >   DBUSMENUQT_LIBRARIES DBUSMENUQT_INCLUDE_DIR)
> > >
> > > Call Stack (most recent call first):
> > >   cmake/modules/FindDBusMenuQt.cmake:34
> > >
> > > (find_package_handle_standard_args)
> > >
> > >   CMakeLists.txt:112 (find_package)
> >
> > Uhm, that is actually a proper report of whats missing. It tells you
> > what wasn't found and where you can get it from. The reason it stops
> > cmake'ing at that point is because missing to find required
> > dependencies is considered a fatal error. See cmake's documentation
> > for
> > FindPackageHandleStandardArgs.
>
> Hmm, okay. Most other required missing dependencies are reported nicely
> in the list at the end of the cmake run (which is much nicer because
> this way you can install all missing dependencies in one go).

It is nicer, but it has the downside that cmake continoues processing even 
after a required package has not been found, which may lead to other problems 
during that cmake run.

So while listing all missing required packages together at the end is nice, it 
also leads to new problems.

Alex


More information about the Kde-buildsystem mailing list