[CMake] Problems with Intel Fortran 11 on Windows XP

Tormod.Ravnanger.Landet at dnv.com Tormod.Ravnanger.Landet at dnv.com
Fri Dec 12 06:41:47 EST 2008


> Hi,
> 
> I have a build system that works for Intel compilers (v 10) on Linux. 
> Now I am trying to port it to windows. I am using the newest trial
> versions of Visual Studio (2009) and the Intel compilers (v. 11). The
> configuration fails with the attached error message. I assume CMake is
> having problems calling the new version of ifort as it fails during
> CMake's own check for a working Fortran compiler.

I have narrowed it down to an error in the Visual Studio 9 2008
generator. With the following files I get the build to work with
MinGW Makefiles, but not VS2008:

CMakeLists.txt
------------------------------------------------------
project(test Fortran)
add_executable(test test.f90)
------------------------------------------------------

test.f90
------------------------------------------------------
PROGRAM TEST
     WRITE(*,*)  "TEST!"
END PROGRAM
------------------------------------------------------


This is the output with  MinGW Makefiles:
------------------------------------------------------
H:\Work\test_cmake_fortran_windows\build>cmake .. -G "MinGW Makefiles"
&& make && test
-- The Fortran compiler identification is Intel
-- Check for working Fortran compiler: C:/Program
Files/intel/Compiler/11.0/066/fortran/Bin/IA32/ifort.exe
-- Check for working Fortran compiler: C:/Program
Files/intel/Compiler/11.0/066/fortran/Bin/IA32/ifort.exe -- works
-- Checking whether C:/Program
Files/intel/Compiler/11.0/066/fortran/Bin/IA32/ifort.exe supports
Fortran 90
-- Checking whether C:/Program
Files/intel/Compiler/11.0/066/fortran/Bin/IA32/ifort.exe supports
Fortran 90 -- yes
-- Configuring done
-- Generating done
-- Build files have been written to:
H:/Work/test_cmake_fortran_windows/build
Scanning dependencies of target test
[100%] Building Fortran object CMakeFiles/test.dir/test.f90.obj
Linking Fortran executable test.exe
[100%] Built target test
 TEST!

------------------------------------------------------

The output with VS2008 is:
------------------------------------------------------
H:\Work\test_cmake_fortran_windows\build>cmake .. -G "Visual Studio 9
2008"
-- Check for working Fortran compiler: C:/Program
Files/intel/Compiler/11.0/066/fortran/Bin/IA32/ifort.exe
-- Check for working Fortran compiler: C:/Program
Files/intel/Compiler/11.0/066/fortran/Bin/IA32/ifort.exe -- broken
CMake Error at C:/Program Files/CMake
2.6/share/cmake-2.6/Modules/CMakeTestFortranCompiler.cmake:25 (MESSAGE):
  The Fortran compiler "C:/Program
  Files/intel/Compiler/11.0/066/fortran/Bin/IA32/ifort.exe" is not able
to
  compile a simple test program.

------------------------------------------------------
... the output is the same as in the previous mail.

Thanks for any help, I would really like to be able to generate a 
Visual Studio Project to compare CMake to a manual Visual Studio
setup as some here do today.


Tormod

**************************************************************************************The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Any unauthorized use, copying or dissemination of this transmission is prohibited. Neither the confidentiality nor the integrity of this message can be vouched for following transmission on the Internet.**************************************************************************************




More information about the CMake mailing list