[Kde-pim] Grantlee-related build error in kdepim/messageviewer
David Jarvie
djarvie at kde.org
Tue Jul 30 10:09:07 BST 2013
On Tue, July 30, 2013 9:37 am, laurent Montel wrote:
> Le mardi 30 juillet 2013 08:44:57 David Jarvie a écrit :
> > On Tuesday 30 Jul 2013 06:11:18 laurent Montel wrote:
> > > Le mardi 30 juillet 2013 01:20:56 David Jarvie a écrit :
> > > > I don't have grantlee installed, and I get the following cmake
error for
> > > > kdepim 4.11:
> > > >
> > > > Make Error at messageviewer/grantleefilters/CMakeLists.txt:3
(INCLUDE):
> > > > include called with wrong number of arguments. Include only
takes one
> > > > file.
> > > >
> > > > CMake Error at messageviewer/grantleefilters/CMakeLists.txt:8
> > > > (grantlee_add_plugin): Unknown CMake command "grantlee_add_plugin".
> > > >
> > > > Either messageviewer directory should be made optional based on
whether
> > > > grantlee is installed, or the test needs to be amended.
> > >
> > > Hi,
> > > In 4.11 grantlee is not optional, its an hard dependancy.
> > > Its used for header mail style, for generating custom plain text in
kmail
> > > composer , by kaddressbook style, kjots style, by headerthemeeditor.
> > > Its a very small lib so for 4.11 its hard dependancy.
> >
> > Even if it's a hard dependency, cmake shouldn't fail in that way (it
> > terminated immediately after displaying those messages). In fact, even
> > after installing grantlee, I still got the same failure after installing
> > grantlee version 0.1.4. It works ok with grantlee 0.3.
> >
> > There should be a proper dependency check so that the missing
dependency is
> > reported nicely, and it should display what the minimum version of
grantlee
> > is required.
> find_package(Grantlee 0.3.0 QUIET CONFIG)
> set_package_properties(Grantlee PROPERTIES DESCRIPTION "The Grantlee
> Template System" URL "http://www.gitorious.org/grantlee/pages/Home" TYPE
> REQUIRED PURPOSE "Grantlee is requires for kmail and templating, theming
for
> KJots, KaddressBook and MessageViewer(KMail)." )
>
>
> So for me its ok for requires
> Dont know why it doesnt assert when version is not good.
Hi Laurent,
Currently the cmake check for grantlee is
find_package(Grantlee 0.3.0 QUIET CONFIG)
If grantlee is a hard dependency, shouldn't QUIET be removed so that an
error message is output about the missing package? Or if the intention is
to skip the build for kmail etc if grantlee is missing, the build of the
messageviewer subdirectory should be conditional on grantlee being found.
--
David Jarvie.
KDE developer.
KAlarm author - http://www.astrojar.org.uk/kalarm
_______________________________________________
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