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

Elizabeth A. Fischer elizabeth.fischer at columbia.edu
Wed Jun 15 10:50:13 EDT 2016


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 Boettcher <
patrick.boettcher at posteo.de> wrote:

> On Mon, 13 Jun 2016 20:05:23 +0200
> Patrick Boettcher <patrick.boettcher at posteo.de> 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
>
>   set(CMAKE_CXX_EXTENSIONS OFF)
>
> actually. Before the target-definition (add_library or add_executable).
>
>
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160615/b28d7408/attachment.html>


More information about the CMake mailing list