[LyX/master] Cmake build: Next try to use of '--std=c++17' for gnu compiler"

Kornel Benko kornel at lyx.org
Fri Oct 23 11:30:33 UTC 2020


Am Thu, 22 Oct 2020 13:32:49 -0400
schrieb Scott Kostyshak <skostysh at lyx.org>:

> On Thu, Oct 22, 2020 at 07:23:46PM +0200, Kornel Benko wrote:
> > Am Thu, 22 Oct 2020 19:15:46 +0200
> > schrieb Kornel Benko <kornel at lyx.org>:
> >   
> > > Am Thu, 22 Oct 2020 13:07:02 -0400
> > > schrieb Scott Kostyshak <skostysh at lyx.org>:
> > >   
> > > > -- CMAKE_COMPILER_IS_GNUCXX = 1
> > > > CMake Error at CMakeLists.txt:702 (if):
> > > >   if given arguments:
> > > > 
> > > >     "stdfeature" "GREATER_EQUAL" "0"
> > > > 
> > > >   Unknown arguments specified
> > > > 
> > > > 
> > > > -- Configuring incomplete, errors occurred!
> > > > See also "/home/scott/lyxbuilds/master/CMakeBuild/CMakeFiles/CMakeOutput.log".
> > > > 
> > > > Scott    
> > > 
> > > Sorry. Can you try to check the syntax for 'if' in your cmake?
> > > 
> > > Variable ${stdfeature} should be '-1' or some integer >= 0
> > > 
> > > 	Kornel  
> > 
> > Please try
> > 	if (stdfeature GREATER -1)  
> 
> I tested the following diff (with respect to current master):
> 
> -           if (stdfeature GREATER_EQUAL 0)
> +           if (stdfeature GREATER -1)
> 
> The 'cmake' command succeeds but make fails:
> 
> /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler
> and library support for the ISO C++ 2011 standard. This support must b e enabled with
> the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and
> library support \
> 
> Scott

Committed correction at 6869c3ad
(After consultations with Scott)

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20201023/4da14073/attachment.asc>


More information about the lyx-devel mailing list