Am Mon, 26 Oct 2020 09:32:33 +0200 schrieb Yuriy Skalko <[email protected]>:
> > I have the following:
> >
> > #define HAVE_DEF_MAKE_UNIQUE 1
> >
> > Here is the diff I am using to force C++11:
> >
> > diff --git a/development/cmake/modules/FindCXX11Compiler.cmake
> > b/development/cmake/modules/FindCXX11Compiler.cmake
> > index f9a1aaf045..b990191424 100644
> > --- a/development/cmake/modules/FindCXX11Compiler.cmake
> > +++ b/development/cmake/modules/FindCXX11Compiler.cmake
> > @@ -57,8 +57,6 @@ else()
> > # Detection of c++20 works well, but our code is not ready for it yet.
> > # We currently get errors with internal boost and also from our code.
> > # "--std=c++20"
> > - "--std=c++17"
> > - "--std=c++14"
> > "--std=c++11"
> > "--std=gnu++11"
> > "--std=gnu++0x"
> >
> > Scott
>
> So that's why it gives compilation error. As I said before
> HAVE_DEF_MAKE_UNIQUE should be inactive in C++11 mode. Have you tried to
> remove CMake cache as Kornel suggested?
>
>
> Yuriy
Are you checking with the old gnu compiler? (E.g. without the feature about
'cxx_std_'?)
Is the CMAKE_CXX_STANDARD correctly set?
Kornel
pgpkKTeo1yxU9.pgp
Description: Digitale Signatur von OpenPGP
-- lyx-devel mailing list [email protected] http://lists.lyx.org/mailman/listinfo/lyx-devel
