On Mon, 13 Jun 2016 18:40:59 +0200
Sylvain Joubert <joubert...@gmail.com> 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 <tgt> 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?  
> 
> Hi,
> 
> 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.

regards,
-- 
Patrick.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to