[cmake-developers] Please review CXXFeatures.cmake

Brad King brad.king at kitware.com
Wed Aug 14 14:02:35 EDT 2013


On 08/13/2013 01:54 PM, Rolf Eike Beer wrote:
> Brad King wrote:
>> On Win64-vs10-Tv90 it is building with VS 10 but the compiler is VS 9.
> I'll switch that over to use CMAKE_CXX_COMPILER_VERSION as suggested 
> below, the error will probably go away then.

That worked.

>> For Win32-mingw-gcc-4.5	and Win32-msys-gcc-4.5, does the MinGW port of
>> the compiler support all the same features?  It is GNU 4.5.0.
> 
> I would have expected it so.

The problem was the if(WIN32) condition for testing /Qstd=c++11
for the Intel compiler.  It triggered on MinGW and of course that
GNU compiler doesn't have the flag.  Fixed:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=51ce1aeb

While at it I added logging of the try_compile output:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cabd6f87

This should help local investigations of the remaining failures.

Perhaps you can also teach the test to print out the
CMakeFiles/CMakeOutput.log and CMakeFiles/CMakeError.log
content at the end when it got unexpected results.

>> For Windows-icl-11.1-*, why do the expected results not just match
>> for this version?
> 
> That is a question I wanted to bring up, too. Can you log into that machine 
> and get me the intermediate results of the try_compile calls?

It seems to have worked last night anyway.  It also worked for me
with local testing of the above-linked changes.

-Brad



More information about the cmake-developers mailing list