On Tue, Dec 10, 2013 at 12:39 PM, Kornel Benko <kor...@lyx.org> wrote:
> Am Montag, 9. Dezember 2013 um 03:12:31, schrieb Scott Kostyshak
> <skost...@lyx.org>
>
>> On Sat, Dec 7, 2013 at 12:08 PM, Scott Kostyshak <skost...@lyx.org> wrote:
>
>> > The above two commands were from the following command (except that
>
>> > the second command switches -DLYX_EXTERNAL_BOOST to "ON"):
>
>> >
>
>> > cmake ../repo \
>
>> > -DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.1 \
>
>> > -DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \
>
>> > -DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \
>
>> > -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \
>
>> > -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \
>
>> > -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
>
>> > -DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \
>
>> > -DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \
>
>> > -DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \
>
>> > -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \
>
>> > -DLYX_ENABLE_CXX11=ON \
>
>> > -DLYX_ENABLE_URLTESTS=ON
>
>> >
>
>> > But doing
>
>> > cmake .
>
>> > with no flags and in the repository directory, I get no error. I will
>
>> > do a bisect of CMake flags unless anyone happens to know what's going
>
>> > on.
>
>>
>
>> It seems to be the interaction of using Clang and
>
>> -DLYX_ENABLE_CXX11=ON that causes the failure.
>
>
>
> I don't have clang, but...
>
>
>
> The option for c++11 may be -std=c++11 or -std=gnu++11.
>
>
>
> Could you try?

It was being run with -std=gnu++0x. Running manually and substituting
for it with -std=c++11 FileMonitor.cpp compiled without error.

> (Can you also check, what is the 'GCC_VERSION' at CMakeLists.txt:216
>
> of the clang compiler?)

GCC version 4.2.1

>
>
>
> We could also use try_compile() to determine what clang (or g++) accepts.
>
>
>
> Like in project enblend, module FindCXX11Compiler.cmake

Scott

Reply via email to