Am Freitag, 13. Mai 2011 schrieb Stephan Witt: > Am 13.05.2011 um 00:06 schrieb kuem...@lyx.org: > > Author: kuemmel > > Date: Fri May 13 00:06:06 2011 > > New Revision: 38733 > > URL: http://www.lyx.org/trac/changeset/38733 > > > > Log: > > cmake on mac: also build with LYX_NLS=0 > > > > Modified: > > lyx-devel/trunk/src/client/CMakeLists.txt > > lyx-devel/trunk/src/tex2lyx/CMakeLists.txt > > Peter, thanks for your effort. In principle it works (compiles) for me on > Mac now. When using -DLYX_EXTERNAL_LIBINTL=OFF I have to apply this patch > to avoid compiler warnings. > > Index: development/cmake/intl/libgnuintl.h.cmake > =================================================================== > --- development/cmake/intl/libgnuintl.h.cmake (Revision 38734) > +++ development/cmake/intl/libgnuintl.h.cmake (Arbeitskopie) > @@ -19,6 +19,10 @@ > #ifndef _LIBINTL_H > #define _LIBINTL_H 1 > > +#undef HAVE_POSIX_PRINTF > +#undef HAVE_ASPRINTF > +#undef HAVE_WPRINTF
Where is it defined? > #cmakedefine01 HAVE_POSIX_PRINTF > #cmakedefine01 HAVE_ASPRINTF > #cmakedefine01 HAVE_WPRINTF > > =================================================================== > The questions I have now are: > 1) shouldn't config.h be included here? And/Or the cmakedefine01 lines > removed? 2) HAVE_ASPRINTF and HAVE_POSIX_PRINTF are set to 0 on Mac - but > I have them, AFAICS. But where? > Stephan 1.) No. The definisions in config.h differ from use there. E.g. in config.h there is either #define HAVE_ASPRINTF 1 or /* undef HAVE_ASPRINTF */ while here it is #define HAVE_ASPRINTF 1 or #define HAVE_ASPRINTF 0 respectivelly. Kornel
signature.asc
Description: This is a digitally signed message part.