Problem detecting Visual Studio 2015 on Windows 10 version 14393.1944 with cmake 3.10
Dear all,
First of all, I would like to thank the cmake developpers for their wonderful work.
I have installed Visual Studio 2015
and cmake 3.10
on my windows 10 box (version 14393.1944).
I am able to compile and run a simple code (hello world in C) with cl
on the command line, so the compiler seems correctly installed.
cmake
3.10 is able to find Visual Studio 2017
properly on the same box.
However, it does not find Visual studio 2015. cmake is invoked as follows:
cmake.exe ..\tfel -G "Visual Studio 14 2015 Win64" ....
It does not work. The compiler is found, and is able to compile a simple object file but the link phase fails.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /nologo /W0 /WX- /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
LINK : fatal error LNK1158: impossible d'ex cuter 'rc.exe' [C:\codes\tfel\master\src\build-test\CMakeFiles\3.10.2\CompilerIdC\CompilerIdC.vcxproj]
G n ration du projet "C:\codes\tfel\master\src\build-test\CMakeFiles\3.10.2\CompilerIdC\CompilerIdC.vcxproj" termin e (cibles par d faut) -- CHEC.
See the attached file for details. After some googling, I did not find a suitable answer. Does anyone know how to overcome the issue ?
With kind regards, Thomas Helfer