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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to