MantisBT - CMake
View Issue Details
0014936CMakeCMakepublic2014-05-26 06:142014-11-03 08:38
neologius 
Brad King 
highminoralways
closedfixed 
AnyAnyAny
CMake 2.8.12.2 
CMake 3.0CMake 3.0 
0014936: CMAKE_GNUtoMS_VCVARS is not set when using Visual Studio 12 2013 and CMakeAddFortranSubdirectory
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).
Use CMakeAddFortranSubdirectory with Visual Studio 12 Win64 and gfortran.
No tags attached.
? Windows-GNU.cmake (9,407) 2014-05-26 06:14
https://public.kitware.com/Bug/file/5153/Windows-GNU.cmake
Issue History
2014-05-26 06:14neologiusNew Issue
2014-05-26 06:14neologiusFile Added: Windows-GNU.cmake
2014-05-27 09:24Brad KingNote Added: 0035941
2014-05-28 12:42Brad KingNote Added: 0035954
2014-05-28 12:42Brad KingAssigned To => Brad King
2014-05-28 12:42Brad KingStatusnew => resolved
2014-05-28 12:42Brad KingResolutionopen => fixed
2014-05-28 12:42Brad KingFixed in Version => CMake 3.0
2014-05-28 12:42Brad KingTarget Version => CMake 3.0
2014-11-03 08:38Robert MaynardNote Added: 0037145
2014-11-03 08:38Robert MaynardStatusresolved => closed

Notes
(0035941)
Brad King   
2014-05-27 09:24   
Thanks. I made the changes here:

 GNUtoMS: Add support for VS 2013
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=668e571d [^]
(0035954)
Brad King   
2014-05-28 12:42   
I've merged the change to our 'release' branch for inclusion in the next 3.0 release candidate.
(0037145)
Robert Maynard   
2014-11-03 08:38   
Closing resolved issues that have not been updated in more than 4 months.