Re: [CMake] GCC: -std=g++14 vs -std=c++14

2016-06-15 Thread Elizabeth A. Fischer
That seems wrong to me. Regardless of how proud the compiler makers are of their extensions, the language you're using should depend as little as possible (by default) on the compiler you choose. -- Elizabeth On Wed, Jun 15, 2016 at 11:48 AM, Robert Maynard wrote:

Re: [CMake] GCC: -std=g++14 vs -std=c++14

2016-06-15 Thread Robert Maynard
This is correct. The default for GCC has always been to enable gcc extensions, with GCC < 6 having a default of gnu++98, and GCC 6 having a default of gnu++14 On Wed, Jun 15, 2016 at 11:00 AM, Patrick Boettcher wrote: > On Wed, 15 Jun 2016 10:50:13 -0400 > "Elizabeth

Re: [CMake] GCC: -std=g++14 vs -std=c++14

2016-06-15 Thread Patrick Boettcher
On Wed, 15 Jun 2016 10:50:13 -0400 "Elizabeth A. Fischer" wrote: > Why are these extensions not turned off by default? Normally, things > should conform to the standards out-of-the-box; and you should have to > explicitly enable extensions. Following that

Re: [CMake] GCC: -std=g++14 vs -std=c++14

2016-06-15 Thread Elizabeth A. Fischer
Why are these extensions not turned off by default? Normally, things should conform to the standards out-of-the-box; and you should have to explicitly enable extensions. Following that principle would have avoided this entire thread. -- Elizabeth On Wed, Jun 15, 2016 at 1:50 AM, Patrick

Re: [CMake] GCC: -std=g++14 vs -std=c++14

2016-06-14 Thread Patrick Boettcher
On Mon, 13 Jun 2016 20:05:23 +0200 Patrick Boettcher wrote: > > You also need to correctly set the CXX_EXTENSIONS properties to get > > a standard standard. > > Yep, > > set(CXX_EXTENSIONS OFF) > > seems to do the trick - thanks. Well, it is

Re: [CMake] GCC: -std=g++14 vs -std=c++14

2016-06-13 Thread Patrick Boettcher
On Mon, 13 Jun 2016 18:40:59 +0200 Sylvain Joubert wrote: > Le 13/06/2016 11:36, Patrick Boettcher a écrit : > > Hi list, > > > > I'm using gcc for a c++14-based project. > > > > To have cmake add the corresponding -std=-flag I'm setting > > > >set_property(TARGET

Re: [CMake] GCC: -std=g++14 vs -std=c++14

2016-06-13 Thread Sylvain Joubert
Le 13/06/2016 11:36, Patrick Boettcher a écrit : Hi list, I'm using gcc for a c++14-based project. To have cmake add the corresponding -std=-flag I'm setting set_property(TARGET PROPERTY CXX_STANDARD 14) This makes that when gcc is used cmake adds -std=gnu++14 . How can I make it set

[CMake] GCC: -std=g++14 vs -std=c++14

2016-06-13 Thread Patrick Boettcher
Hi list, I'm using gcc for a c++14-based project. To have cmake add the corresponding -std=-flag I'm setting set_property(TARGET PROPERTY CXX_STANDARD 14) This makes that when gcc is used cmake adds -std=gnu++14 . How can I make it set -std=c++14 instead? Background: my problem is the