trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: November 2012

Re: [trinity-devel] cmake bug with 64-bit?

From: Serghei Amelian <serghei@...>
Date: Sun, 11 Nov 2012 19:15:26 +0200
On Sunday 11 November 2012 19:00:47 Fat-Zer wrote:
> 2012/11/11 Serghei Amelian <serghei@...>
>
> > On Sunday 11 November 2012 10:39:02 Darrell Anderson wrote:
> > > Serghei,
> > >
> > > The check_include_file macro in tdegraphics/ksvg/ConfigureChecks.cmake
> > > seems to fail on 64-bit systems. Please read bug report 1311:
> > >
> > > http://bugs.pearsoncomputing.net/show_bug.cgi?id=1311#c9
> > >
> > > Any ideas?
> >
> > Show  me CMakeError.log and the output of pkg-config --cflags fribidi
>
> My CMakeError.log and other logs already attached to the bug report.
> pkg-config also returns glib's stuff...
> Patch already provided.

Do not override/pollute CMAKE_REQUIRED_INCLUDES, you can fall into another 
strange and hard to hunt bugs.

Correct way:

tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${FRIBIDI_INCLUDE_DIRS} )
check_include_file( fribidi/fribidi-types.h FRIBIDI_NEW_FILENAME )
tde_restore( CMAKE_REQUIRED_INCLUDES  )

-- 
Serghei