<div dir="ltr">Thanks Brad, so setting CXX_EXTENSIONS to off will switch me to 'standard' compliant mode?</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 2, 2017 at 10:01 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/01/2017 08:29 PM, Nikola Smiljanic wrote:<br>
> I'd like to know why CMake uses 'gnu' flags when setting C++ standard.<br>
> I find this very surprising as 'gnu' mode enables non standard extensions?<br>
<br>
</span>Setting the standard level should not affect the extensions, and the compiler's<br>
default mode includes extensions.  There is a separate property for extensions:<br>
<br>
  <a href="https://cmake.org/cmake/help/v3.9/prop_tgt/CXX_EXTENSIONS.html" rel="noreferrer" target="_blank">https://cmake.org/cmake/help/<wbr>v3.9/prop_tgt/CXX_EXTENSIONS.<wbr>html</a><br>
<br>
It is ON by default since most compilers have extensions on by default.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Brad<br>
</font></span></blockquote></div><br></div>