Thanks Brad, so setting CXX_EXTENSIONS to off will switch me to 'standard'
compliant mode?

On Mon, Oct 2, 2017 at 10:01 PM, Brad King <brad.k...@kitware.com> wrote:

> On 10/01/2017 08:29 PM, Nikola Smiljanic wrote:
> > I'd like to know why CMake uses 'gnu' flags when setting C++ standard.
> > I find this very surprising as 'gnu' mode enables non standard
> extensions?
>
> Setting the standard level should not affect the extensions, and the
> compiler's
> default mode includes extensions.  There is a separate property for
> extensions:
>
>   https://cmake.org/cmake/help/v3.9/prop_tgt/CXX_EXTENSIONS.html
>
> It is ON by default since most compilers have extensions on by default.
>
> -Brad
>
-- 

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-developers

Reply via email to