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

Kornel Benko kornel at lyx.org
Thu Oct 22 16:54:59 UTC 2020


Am Thu, 22 Oct 2020 12:07:17 -0400
schrieb Scott Kostyshak <skostysh at lyx.org>:

> On Thu, Oct 22, 2020 at 05:42:33PM +0200, Kornel Benko wrote:
> > Am Thu, 22 Oct 2020 10:20:49 -0400
> > schrieb Scott Kostyshak <skostysh at lyx.org>:
> >   
> > > On Thu, Oct 22, 2020 at 01:23:51PM +0200, Kornel Benko wrote:  
> > > > commit d954a6b09cc9d284a34510f076c16f22b425ead2
> > > > Author: Kornel Benko <kornel at lyx.org>
> > > > Date:   Thu Oct 22 13:46:29 2020 +0200
> > > > 
> > > >     Cmake build: Next try to use of '--std=c++17' for gnu compiler"
> > > >     
> > > >     Setting CMAKE_CXX_STANDARD explicitly, so that cmake can use
> > > >     correct cxx-flags
> > > > ---    
> > > 
> > > I get errors (although now at least it says '17' instead of '20' so that's
> > > progress):
> > > 
> > >   CMake Error at src/CMakeLists.txt:113 (add_executable):
> > >     CXX_STANDARD is set to invalid value '17'
> > >   
> > >   
> > >   CMake Error at src/frontends/CMakeLists.txt:18 (add_library):
> > >     CXX_STANDARD is set to invalid value '17'
> > >   
> > >   
> > >   CMake Error at src/frontends/qt/CMakeLists.txt:42 (add_library):
> > >     CXX_STANDARD is set to invalid value '17'
> > >   
> > >   
> > >   CMake Error at src/frontends/tests/CMakeLists.txt:10 (add_executable):
> > >     CXX_STANDARD is set to invalid value '17':
> > > 
> > > g++ --version
> > > g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
> > > 
> > > I don't use this system much so if that GCC version is too old, then I'm
> > > fine if we do not support it. But if we dream that someday Pavel will
> > > switch to CMake, we should be ready :)
> > > 
> > > Scott  
> > 
> > This is cmake message only. What is your cmake version?
> > Apparently '17' is enabled with version 3.8, and '20' with version 3.12  
> 
> cmake version 3.5.1
> 
> Scott

OK, will ask cmake for available features :(

	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/20201022/7f9663c1/attachment.asc>


More information about the lyx-devel mailing list