MantisBT - CMake
View Issue Details
0011517CMakeCMakepublic2010-11-25 05:322013-11-04 15:30
Nils Gladitz 
Bill Hoffman 
normalfeaturealways
closedfixed 
CMake 2.8.3 
CMake 2.8.6 
0011517: Support for Intel Fortran 12 in "Visual Studio 10" generator
It would be great if the "Visual Studio 10" (2010) generator would support generating .vfproj projects as used by the Intel Visual Fortran 12.0 integration.

I've attached a Fortran "Hello World" project as currently generated by the new project wizard.
No tags attached.
has duplicate 0011929closed  Cmake projects requiring (Intel) Fortran fail to configure and/or generate. 
zip Console1.zip (1,795) 2010-11-25 05:32
https://public.kitware.com/Bug/file/3530/Console1.zip
Issue History
2010-11-25 05:32Nils GladitzNew Issue
2010-11-25 05:32Nils GladitzFile Added: Console1.zip
2011-01-01 11:12Nils GladitzNote Added: 0024351
2011-01-17 14:38David ColeAssigned To => Bill Hoffman
2011-01-17 14:38David ColeStatusnew => assigned
2011-04-06 16:30Brad KingRelationship addedhas duplicate 0011929
2011-06-23 11:55Mark StijnmanNote Added: 0026957
2011-06-23 16:45Bill HoffmanNote Added: 0026959
2011-07-12 16:19Bill HoffmanNote Added: 0027030
2011-11-30 09:47Nils GladitzNote Added: 0027874
2012-05-09 10:38Marcus SindermannNote Added: 0029431
2012-05-09 10:39Marcus SindermannNote Edited: 0029431bug_revision_view_page.php?bugnote_id=29431#r645
2012-05-09 13:30Brad KingNote Added: 0029435
2013-11-04 15:30Nils GladitzStatusassigned => closed
2013-11-04 15:30Nils GladitzResolutionopen => fixed
2013-11-04 15:30Nils GladitzFixed in Version => CMake 2.8.6

Notes
(0024351)
Nils Gladitz   
2011-01-01 11:12   
I've taken another look at the generated projects and it seems that they are identical to those generated when using the wizard in Visual Studio 2005 with version 11 of the Intel Fortran compiler.

Since Visual Studio 2005 Intel Fortran support is already available in CMake it might be possible to reuse it for Visual Studio 2010?

Two hopefully minor obstacles are that the project files are apparently required to set the "Version" attribute to "11.0" even though the compiler is correctly detected as "12.0" and unlike the new c++ projects the .vfproj files can probably not be build with msbuild(?).
(0026957)
Mark Stijnman   
2011-06-23 11:55   
Is it possible to upgrade the severity and/or priority for this feature? VS2010 and Intel Composer XE 2011 have been around for long enough that more and more people are going to run into this problem. Just like one of the users of our library did today.
(0026959)
Bill Hoffman   
2011-06-23 16:45   
I am actually working on this now. I have made the first step in this direction. I have changed CMake to use devenv instead of msbuild for the build tool. This is required since msbuild can not build the .vfproj files. It seems to be passing all tests. In the start msbuild was the only tool that could run the whole cmake set of tests (devenv crashed...). That seems to be gone now.
(0027030)
Bill Hoffman   
2011-07-12 16:19   
I have pushed a fix for this to next. To test you will have to build CMake from git next branch source. If you can do that, please let me know if it works for you.
(0027874)
Nils Gladitz   
2011-11-30 09:47   
Sorry for the late reply ... I assume this (and the changes mentioned in http://www.cmake.org/pipermail/cmake/2011-September/046515.html [^]) made it into the release since I just gave this another try with 2.8.6 and my hello word project configured, build and ran with the Visual Studio 10 generator as expected.

thanks!
(0029431)
Marcus Sindermann   
2012-05-09 10:38   
(edited on: 2012-05-09 10:39)
What's the state of this issue?
We are currently updating our compilers and have the same problem with cmake 2.8.8.

(0029435)
Brad King   
2012-05-09 13:30   
Re 0011517:0029431: Support was added in 2.8.6 as reported by 0011517:0027874. I guess this issue tracker entry slipped through without being marked as resolved.

VS-10/Intel-12 still works in 2.8.8 for me. CMake's own "Fortran" test passes and can even mix C/C++/Fortran:

Microsoft Visual Studio 10.0.30319.1
Intel Visual Fortran 12.0.3470.2010

>cmake --version
cmake version 2.8.8

>cmake .. -G"Visual Studio 10"
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working Fortran compiler using: Visual Studio 10
-- Check for working Fortran compiler using: Visual Studio 10 -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Determine Intel Fortran Compiler Implicit Link Path
-- Determine Intel Fortran Compiler Implicit Link Path -- done
-- Checking whether ifort supports Fortran 90
-- Checking whether ifort supports Fortran 90 -- yes
CMAKE_Fortran_COMPILER = ifort
CMAKE_Fortran_FLAGS = /W1 /nologo /fpp /libs:dll /threads
-- Testing FortranCInterface module
-- Detecting Fortran/C Interface
-- Detecting Fortran/C Interface - Found GLOBAL and MODULE mangling
-- Verifying Fortran/C Compiler Compatibility
-- Verifying Fortran/C Compiler Compatibility - Success
-- Verifying Fortran/CXX Compiler Compatibility
-- Verifying Fortran/CXX Compiler Compatibility - Success
Fortran = Intel
C = MSVC