[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Grantlee-related build error in kdepim/messageviewer
From:       "David Jarvie" <djarvie () kde ! org>
Date:       2013-07-30 9:09:07
Message-ID: 21b2312e26345e8fe63c26303cc557c4.squirrel () www ! sensical ! net
[Download RAW message or body]

On Tue, July 30, 2013 9:37 am, laurent Montel wrote:
> Le mardi 30 juillet 2013 08:44:57 David Jarvie a =E9crit :
> > On Tuesday 30 Jul 2013 06:11:18 laurent Montel wrote:
> > > Le mardi 30 juillet 2013 01:20:56 David Jarvie a =E9crit :
> > > > 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, it=92s an hard dependancy.
> > > It=92s used for header mail style, for generating custom plain text in
kmail
> > > composer , by kaddressbook style, kjots style, by headerthemeeditor.
> > > It=92s a very small lib so for 4.11 it=92s 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 it=92s ok for requires
> Don=92t know why it doesn=92t 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@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic