[cmake-developers] [CMake 0015871]: Cmake may select incorrect default generator on windows host

Mantis Bug Tracker mantis at public.kitware.com
Thu Dec 3 17:13:48 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15871 
====================================================================== 
Reported By:                Richard Lang
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15871
Category:                   CMake
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-12-03 17:13 EST
Last Modified:              2015-12-03 17:13 EST
====================================================================== 
Summary:                    Cmake may select incorrect default generator on
windows host
Description: 
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.

Steps to Reproduce: 
Run Cmake without generator specified on Windows host with more than 1 version
of visual Studio installed.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-12-03 17:13 Richard Lang   New Issue                                    
======================================================================



More information about the cmake-developers mailing list