[os x] Po directories gettext check fails

Alexander Neundorf neundorf at kde.org
Thu Jan 1 20:03:01 CET 2009


On Thursday 01 January 2009, you wrote:
> A Dijous 01 Gener 2009, Alexander Neundorf va escriure:
> > On Thursday 01 January 2009, Allen Winter wrote:
> > > On Thursday 01 January 2009 12:27:22 pm Orville Bennett wrote:
> > > > On Jan 1, 2009, at 11:29 AM, Allen Winter wrote:
> > > > > On Thursday 01 January 2009 11:18:10 am Orville Bennett wrote:
> > > > > snip
> > > > >
> > > > >
> > > > >
> > > > > You might need to install libintl separately as well.
> > > > > Or install a glibc that comes with libintl.
> > > >
> > > > Y'know after trying the command again it seems it is intl.h which
> > > > isn't being found.
> > >
> > > Seems we need to add /opt/local/include to the CMAKE_REQUIRED_INCLUDES
> > > list. I'm really not sure the best way to make that happen.
> > >
> > > You could try putting the following line near the top of
> > > FindGettext.cmake: set(CMAKE_REQUIRED_INCLUDES
> > > ${CMAKE_REQUIRED_INCLUDES} /opt/local/include)
> >
> > That's teh FindGetText.cmake comign with cmake, right ?
> > Please file a bug report for this in the cmake bug tracker and assign in
> > to me.
> > http://public.kitware.com/Bug/
>
> We have a FindGettext.cmake in kdelibs, not sure if its the same or not.

Ah, you are right. It's our version.

So, do a find_path() for libintl.h, then push the *_REQUIRED_* variables 
(there are macros for that), then add the path from find_path() to the 
required includes, then do the tests, then restore the *_REQUIRED_* variables 
using pop.
Maybe the check_include_files() can also simply be replaced by a find_path().

Alex


More information about the Kde-buildsystem mailing list