macro_optional_find_package(Whatever) without FindWhatever.cmake

Allen Winter winter at kde.org
Thu Sep 4 00:50:59 CEST 2008


On Wednesday 03 September 2008 17:54:19 Alexander Neundorf wrote:
> On Wednesday 03 September 2008, Jan Kundrát wrote:
> > Hi guys,
> > I'd like to add an optional support for Marble to KPhotoALbum. My
> > approach was the classic one:
> >
> > macro_optional_find_package(Marble)
> >
> > However, as I'd like to make the support really optional, I want it to
> > work even on systems without the FindMarble.cmake file (another KPA
> > developer sitting next to me has such system).
> >
> > How should I solve this issue? I'd like to avoid bundling the
> > FindMarble.cmake with my application, as it'd just cause troubles
> > because I certainly won't keep it synced with the official one etc.
> 
> Hmm, FindMarble.cmake is in kdeedu/marble/, and only installed once marble is 
> installed. This is only mildly usefull (since, as you noted, it only works if 
> marble is actually there).
> I think there are only two options:
> 1) move FindMarble.cmake to kdelibs/cmake/modules/
> 2) ship a copy of it with your application
> 

I'm really thinking we need to move the Marble libs out of kdeedu and into.. I don't know... exactly.
Is it stable enough for kdelibs?


More information about the Kde-buildsystem mailing list