Visual Studio 2015 does not work with v180 toolset and cmake >= 3.4
cmake -G "Visual Studio 14 2015 Win64" -T v80 does not work for cmake version >= 3.4 It fails with the following message
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/x86_amd64/cl.exe -- broken
CMake Error at C:/usr32/local/cmake36/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
8/VC/bin/x86_amd64/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/builds/xxx/cmake36x86-vs2015/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_92eed.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
cmake -G "Visual Studio 12 2013 Win64" -T v80 does work.
cmake -G "Visual Studio 14 2015 Win64" -T v80 does work for cmake-3.3.2, although it incorrectly prints
-- The C compiler identification is MSVC 14.0.50727
-- The CXX compiler identification is MSVC 14.0.50727
the solution generated is OK.
cmake 3.4 and 3.5 also fails with vs2015, so something happened between 3.3 and 3.4
Regards.