[cmake-developers] [CMake 0015831]: CMake Version 3.4.0 rc2 rc3 Detected Visual Studio 2015 with some error

Mantis Bug Tracker mantis at public.kitware.com
Wed Nov 4 02:35:24 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15831 
====================================================================== 
Reported By:                Yuan Hong
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15831
Category:                   CMake
Reproducibility:            sometimes
Severity:                   block
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2015-11-04 02:35 EST
Last Modified:              2015-11-04 02:35 EST
====================================================================== 
Summary:                    CMake Version 3.4.0 rc2 rc3  Detected Visual Studio
2015 with some error
Description: 
When I use Version 3.3 and 3.4.0 rc1, I can make the build success with My
Visual Studio 2015. but when i try to cmake -G "Visual Studio 14 Win64" ..\ with
version 3.4.0 rc2 (and rc3), I get follow error:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_C_COMPILER could be found.



CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_CXX_COMPILER could be found.



-- Configuring incomplete, errors occurred!
See also "C:/Work/obs-studio/build64/CMakeFiles/CMakeOutput.log".
See also "C:/Work/obs-studio/build64/CMakeFiles/CMakeError.log".


and the most important error in CMakeError.log is :

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 LNK1181: cannot open input file 'kernel32.lib'
[C:\Work\obs-studio\build64\CMakeFiles\3.4.0-rc3\CompilerIdC\CompilerIdC.vcxproj]


Steps to Reproduce: 
cmake with my attached CMakeList file.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-11-04 02:35 Yuan Hong      New Issue                                    
2015-11-04 02:35 Yuan Hong      File Added: CMakeLists.txt                    
======================================================================



More information about the cmake-developers mailing list