MantisBT - CMake
View Issue Details
0015978CMakeCMakepublic2016-02-17 11:062016-06-10 14:21
Niclas Larsén 
 
highfeaturealways
closedno change required 
Windows
CMake 3.4.3 
 
0015978: Visual Studio 2015 Update 2 CTP support
the latest visual studio preview isn't supported by cmake.

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:43 (project):
  No CMAKE_C_COMPILER could be found.
No tags attached.
Issue History
2016-02-17 11:06Niclas LarsénNew Issue
2016-02-17 13:36Brad KingNote Added: 0040498
2016-02-18 05:51Niclas LarsénNote Added: 0040504
2016-02-18 09:36Brad KingNote Added: 0040505
2016-02-18 09:36Brad KingStatusnew => resolved
2016-02-18 09:36Brad KingResolutionopen => no change required
2016-06-10 14:21Kitware RobotNote Added: 0041246
2016-06-10 14:21Kitware RobotStatusresolved => closed

Notes
(0040498)
Brad King   
2016-02-17 13:36   
It works for me on Windows 10 with CMake 3.4.3 and 3.5.0-rc2:

> cmake --version
cmake version 3.4.3
...

> cmake ..\src -G "Visual Studio 14 2015"
-- The C compiler identification is MSVC 19.0.23725.0
....

What generator are you using?

Please post the CMakeFiles/CMakeError.log file from the build tree.
(0040504)
Niclas Larsén   
2016-02-18 05:51   
Thanks, found the error. My environment didn't have the default windows sdk installed.

From the CMakeError.log:

"C:\src\nda_etf_booking\CMakeFiles\3.5.0-rc2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(Desktop_PlatformPrepareForBuild target) ->
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140\Toolset.targets(34,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages.."
(0040505)
Brad King   
2016-02-18 09:36   
Great, thanks for reporting back.
(0041246)
Kitware Robot   
2016-06-10 14:21   
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.