MantisBT - CMake
View Issue Details
0014369CMakeCMakepublic2013-08-20 13:272014-02-10 10:44
mharmer 
Robert Maynard 
normalmajoralways
closedfixed 
Windows
CMake 2.8.11.2 
CMake 2.8.12CMake 2.8.12 
0014369: VS 2013 Project File ToolsVersion Incorrect
When attempting to build via MSBuild a project file generated by CMake a failure is reported:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(44,5): error MSB8020: The builds tools for v120 (Platform Toolset = 'v120') cannot be found.
 To build using the v120 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install v120 to build using the v120 build tools.

The following snippet from the .vcxproj is generated:

<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> [^]

The ToolsVersion for VC12 (VS2013) should be "12.0", not "4.0".
1. Generate project files targeting VS 2013 (VS 12) - in particular we're using Ogre 1.7.2.
2. Attempt to build via MSBuild on the command line
No tags attached.
Issue History
2013-08-20 13:27mharmerNew Issue
2013-08-20 14:12Robert MaynardNote Added: 0033738
2013-08-20 14:13Robert MaynardNote Deleted: 0033738
2013-08-20 14:14Robert MaynardNote Added: 0033739
2013-08-20 14:15Robert MaynardAssigned To => Robert Maynard
2013-08-20 14:15Robert MaynardStatusnew => assigned
2013-08-20 14:42Robert MaynardNote Added: 0033740
2013-08-20 14:42Robert MaynardStatusassigned => confirmed
2013-08-20 14:43Robert MaynardStatusconfirmed => assigned
2013-08-26 10:37Brad KingNote Added: 0033745
2013-08-27 16:44mharmerNote Added: 0033751
2013-08-27 16:47Brad KingNote Added: 0033752
2013-08-27 16:47Brad KingStatusassigned => resolved
2013-08-27 16:47Brad KingResolutionopen => fixed
2013-08-27 16:47Brad KingFixed in Version => CMake 2.8.12
2013-08-27 16:47Brad KingTarget Version => CMake 2.8.12
2014-02-10 10:44Robert MaynardNote Added: 0035079
2014-02-10 10:44Robert MaynardStatusresolved => closed

Notes
(0033739)
Robert Maynard   
2013-08-20 14:14   
Okay it looks like MSBuild was moved out of the .Net Framework and moved to be its own tool.
http://msdn.microsoft.com/en-us/library/vstudio/hh162058(v=vs.120).aspx [^]

So we go from version 4.0 from 2010 and 2012 to version 12 for 2013.
(0033740)
Robert Maynard   
2013-08-20 14:42   
Currently working on a fix for this issue.
(0033745)
Brad King   
2013-08-26 10:37   
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3064f80d [^]
(0033751)
mharmer   
2013-08-27 16:44   
Looks like the latest nightly resolves this issue on VS2013, thanks!
(0033752)
Brad King   
2013-08-27 16:47   
This has been merged to 'master' and will be in 2.8.12-rc2.
(0035079)
Robert Maynard   
2014-02-10 10:44   
Closing resolved issues that have not been updated in more than 4 months.