[cmake-developers] Wrong cxx-extension flags

Kornel Benko kornel at lyx.org
Thu Jul 14 16:41:07 EDT 2016


Am Donnerstag, 14. Juli 2016 um 16:06:17, schrieb Brad King <brad.king at kitware.com>
> On 07/14/2016 03:59 PM, Kornel Benko wrote:
> >> What you can do is not add your own flag and instead do
> >>
> >>  set(CMAKE_CXX_STANDARD 14)
> >>  set(CMAKE_CXX_EXTENSIONS OFF)
> > 
> > I did this, as it seemed least invasive.
> > But now, instead of '-std=gnu++1' I got '-std=c++11' which is not better.
> > Of course, since QT5.7 explicitly requires   C++11 features, we don't need C++14.
> 
> I don't quite follow here.  What flag to you want to get?

I meant we don't need to test for c++14.

> Don't add your own flag explicitly.  Some combination of
> the above settings can get the flag you need.

I have to stick also with older cmake versions, so bear with me.

Nonetheless, I tested some combinations already, and it all looks good.

> -Brad

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160714/875c8434/attachment.sig>


More information about the cmake-developers mailing list