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

Scott Kostyshak skostysh at lyx.org
Thu Oct 22 17:32:49 UTC 2020


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20201022/ab91d5fc/attachment.asc>


More information about the lyx-devel mailing list