<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 18, 2015 at 1:06 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 11/18/2015 02:32 PM, Levi Morrison wrote:<br>
> After some other tweaks I am able to get Intel C++ compiler versions<br>
> 12.1.4 13.0.1, 14.0.0, 14.0.2, 15.0.0, 15.0.2, 15.0.3 to work!<br>
> Both tests found by `ctest -R CompileFeatures -VV` pass.<br>
<br>
</span>Great.  However, the concern I raised earlier about detecting<br>
C++11 features in C++14 mode has not been addressed.  For example:<br>
<br>
 set(Intel14_CXX11 "__ICC >= 1400 && __INTEL_CXX11_MODE__")<br>
<br>
In C++14 mode this check fails so all the conditional features are<br>
detected to not exist.  Tests/CompileFeatures/CMakeFiles/CMakeOutput.log<br>
shows:<br>
<br>
 Detecting CXX [-std=c++1y] compiler features compiled with the following output:<br>
 ...<br>
    Feature record: CXX_FEATURE:0cxx_defaulted_move_initializers<br>
 ...<br>
 Detecting CXX [-std=c++11] compiler features compiled with the following output:<br>
 ...<br>
    Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers<br>
<br>
The "0" and "1" are an internal detection code encoding for whether<br>
the feature exists according to the feature test specified.  We see<br>
that the C++14 mode does not think the feature exists.  This is not<br>
the case for GNU or other compilers.<br>
<br>
I'm not sure why this doesn't cause problems in the test, but the<br>
conditions need to be fixed to avoid this problem.  __INTEL_CXX11_MODE__<br>
only tells us that we are in *exactly* C++11 mode and so is not<br>
reliable for detecting C++11 features in C++14 mode.<br>
<span class=""><font color="#888888"><br>
-Brad<br>
<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">My builds don't seem to be attempting this:</div><div class="gmail_extra"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Detecting CXX [-std=c++1y] compiler features compiled with the following output</blockquote><div><br></div><div>You are getting this out of the CMakeFiles/CMakeOutput.log, correct?</div></div>