MantisBT - CMake
View Issue Details
0015871CMakeCMakepublic2015-12-03 17:132016-05-02 08:30
Richard Lang 
 
normalminorhave not tried
closedno change required 
Windows 7 64 bit
CMake 3.4.1 
 
0015871: Cmake may select incorrect default generator on windows host
Looking at cmake::ActualConfigure() method in cmake.cxx (line 1265 or thereabouts), comment indicates that in absence of a specified generator cmake running on a native Windows host (not Cygwin) should generate for the newest Visual Studio installation found on the system, and fall back to generating a NMake make file if none found (which seems sensible), however as far as I can see the code is actually going to select the OLDEST VS install.

Haven't run any test cases, this is solely from code inspection.
Run Cmake without generator specified on Windows host with more than 1 version of visual Studio installed.
No tags attached.
Issue History
2015-12-03 17:13Richard LangNew Issue
2015-12-03 17:36Richard LangNote Added: 0039951
2015-12-04 08:25Brad KingStatusnew => resolved
2015-12-04 08:25Brad KingResolutionopen => no change required
2016-05-02 08:30Robert MaynardNote Added: 0040977
2016-05-02 08:30Robert MaynardStatusresolved => closed

Notes
(0039951)
Richard Lang   
2015-12-03 17:36   
False alarm sorry, misunderstood scope of break statement
(0040977)
Robert Maynard   
2016-05-02 08:30   
Closing resolved issues that have not been updated in more than 4 months.