Am Freitag, 29. Mai 2015 um 21:59:16, schrieb pdv <pdvissch...@edpnet.be>
> On 29/05/15 20:10, Kornel Benko wrote:
> > Am Freitag, 29. Mai 2015 um 19:52:03, schrieb Jean-Marc Lasgouttes 
> > <lasgout...@lyx.org>
> >> Le 28/05/2015 23:23, pdv a écrit :
> >>> Starting with commit b596330 lyx fails to compile with cmake/xcode.
> >>> This seems to be due to "boost::next" having been replaced by "next" and
> >>> this generates "ambiguous call to 'next'" semantic issues, one of the 2
> >>> possibilities being the "next" in lyxalgo.h mentioned in this message.
> >>> So this might be related to this;
> >>> I expected LYX_USE_CXX11 to be set (with the later commits that is), but
> >>> that's not the case;
> >>> When I manually define LYX_USE_CXX11 the problems with "next" go away,
> >>> but similar and much more semantic issues surface with "bind".
> >>
> >> I suspect that there is a problem with clang, which implements parts of
> >> C++11 even when not in c++11 mode.
> >>
> >> Patrick, what are the options passed to cmake? What is your clang version?
> >>
> >> JMarc
> >
> > Good idea JMarc.
> >
> > Patrick, do you use '-DLYX_ENABLE_CXX11=ON' in cmake call? (Default is OFF)
> >
> >     Kornel
> >
> 
> (I'm using the CMake GUI and I define the macro's directly)
> Previously I defined LYX_USE_CXX11 and this showed up in config.h but 
> failed;
> 
> Defining instead LYX_ENABLE_CXX11 solves it.
> 
> Thanks
> 
> Patrick

The variable LYX_USE_CXX11 is set by cmake while checking for the appropriate 
compiler flags
to enable c++11.
But this is only done if LYX_ENABLE_CXX11 is set by the user (you).

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to