[cmake-developers] [CMake 0014936]: CMAKE_GNUtoMS_VCVARS is not set when using Visual Studio 12 2013 and CMakeAddFortranSubdirectory
Mantis Bug Tracker
mantis at public.kitware.com
Mon May 26 06:14:51 EDT 2014
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14936
======================================================================
Reported By: neologius
Assigned To:
======================================================================
Project: CMake
Issue ID: 14936
Category: CMake
Reproducibility: always
Severity: minor
Priority: high
Status: new
======================================================================
Date Submitted: 2014-05-26 06:14 EDT
Last Modified: 2014-05-26 06:14 EDT
======================================================================
Summary: CMAKE_GNUtoMS_VCVARS is not set when using Visual
Studio 12 2013 and CMakeAddFortranSubdirectory
Description:
In Windows-GNU.cmake, find_program is used to discover the batch file that sets
up the Visual C++ command line environment by inspecting certain registry
entries.
There is no inspection of the registry key where visual studio 2013 stores its
installation directory.
Moreover, in Visual Studio 2013, the name of the batch file has been changed
slightly requiring appending a name to search for in the find_program NAMES
list.
Both issues can be fixed by slightly modifying the cmake file (see attachment).
Steps to Reproduce:
Use CMakeAddFortranSubdirectory with Visual Studio 12 Win64 and gfortran.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-05-26 06:14 neologius New Issue
2014-05-26 06:14 neologius File Added: Windows-GNU.cmake
======================================================================
More information about the cmake-developers
mailing list