MantisBT - CMake
View Issue Details
0014146CMakeCMakepublic2013-05-16 04:402013-10-07 10:09
adrien courdavault 
 
normalmajoralways
closedno change required 
win8 64bit
CMake 2.8.11 
 
0014146: Toolset selection does not work with NMake generator
I cant use the toolset selection with the NMake generator.
I want to use CTP Nov 2012 v120 toolset of visual.
run cmake -G"NMake Makefiles" with the toolset set to v120
My platform is a completly up to date visual studio 2012 on Win 8
No tags attached.
Issue History
2013-05-16 04:40adrien courdavaultNew Issue
2013-05-16 04:49Rolf Eike BeerProduct Version => CMake 2.8.11
2013-05-16 04:49Rolf Eike BeerSummaryCMake 2.8.11 rc4 => Toolset selection does not work with NMake generator
2013-05-16 04:49Rolf Eike BeerSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1157#r1157
2013-05-16 06:46Nils GladitzNote Added: 0033053
2013-05-16 11:56Brad KingNote Added: 0033061
2013-05-16 11:56Brad KingStatusnew => resolved
2013-05-16 11:56Brad KingResolutionopen => no change required
2013-10-07 10:09Robert MaynardNote Added: 0034048
2013-10-07 10:09Robert MaynardStatusresolved => closed

Notes
(0033053)
Nils Gladitz   
2013-05-16 06:46   
It is documented that the new toolset option only works with the Visual Studio >= 10 and Xcode >= 3.0 generators.

When using the "NMake Makefiles" generator CMake picks the compiler from the environment instead.

Visual Studio provides "Developer Command Prompt"s for that purpose.

If there isn't one for CTP Nov 2012 you might be able to use the Visual Studio 2012 Developer Command Prompt and from there prepend the new compiler "bin" and "include" paths in the PATH and INCLUDE environment variables.
(0033061)
Brad King   
2013-05-16 11:56   
The answer given in 0014146:0033053 is correct, so I'm resolving this issue. Please visit the mailing list if you need further help with the environment:

 http://www.cmake.org/mailman/listinfo/cmake [^]
(0034048)
Robert Maynard   
2013-10-07 10:09   
Closing resolved issues that have not been updated in more than 4 months.