[cmake-developers] [CMake 0015809]: MSVC_VERSION is wrong
Mantis Bug Tracker
mantis at public.kitware.com
Mon Oct 26 11:54:00 EDT 2015
The following issue has been SUBMITTED.
======================================================================
https://public.kitware.com/Bug/view.php?id=15809
======================================================================
Reported By: Nuno
Assigned To:
======================================================================
Project: CMake
Issue ID: 15809
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-10-26 11:54 EDT
Last Modified: 2015-10-26 11:54 EDT
======================================================================
Summary: MSVC_VERSION is wrong
Description:
In my setup I have installed VS 2010 through VS 2015 (except VS2012) and for
some reason when using the VS 2015 command line and the NMake generator the
value of MSVC_VERSION comes as 1800 instead of 1900.
Also I have Intel Fortran 2013 and 2016 installed.
I have traced this issue to the file "Modules/Platform/windows-MSVC.cmake"
around line 62 where the variable MSVC_VERSION is set.
The IF() statements fail except the Fortran one. And on that one
CMAKE_Fortran_SIMULATE_VERSION has a value of 18.0 and then this value is used.
It seems that this comes from Modules/CMakeFortranCompilerId.F.in.
I suggest that the Modules/CMakeFortranCompilerId.F.in gets updated. There is an
if statement where it checks for _MSC_VER >= 1800. The check for _MSC_VER >=
1900 should be added here for Visual Studio 2015 full support.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-10-26 11:54 Nuno New Issue
======================================================================
More information about the cmake-developers
mailing list