When using ifort on windows I do the following

a)      Make sure cmake is launched from inside a cmd prompt with the 
ifort-vars.bat set so that the ifort compiler is on the path etc etc

b)      always use nmake makefiles to do the initial configure and detection

c)       once the project is ready to compile, you can edit the cmakecache and 
insert the visual studio (2008) generator, then rerun cmake and regenerate.

Now you are a happy bunny and can compile using the IDE if desired - or skip C 
and use nmake

JB


From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of 
Allen D Byrne
Sent: 08 November 2010 16:18
To: cmake@cmake.org
Subject: [CMake] 2.8.3 fortran regression or how to find configure problem


Friday I upgraded my windows VS2008 and IVF111 machines to cmake 2.8.3. Over 
the weekend they all failed to configure with fortran :

>-- Check for working Fortran compiler using: Visual Studio 9 2008 -- broken

>CMake Error at C:/Program Files/CMake 
>2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):

>  The Fortran compiler "ifort" is not able to compile a simple test program.

>

>  It fails with the following output:

>

>   Change Dir: C:/autotest/HDF4CMake/tests/Monday-vs9/Build/CMakeFiles/CMakeTmp

>

>

>

>  Run Build Command:c:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com

>  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec

>

>

>

>  Microsoft (R) Visual Studio Version 9.0.21022.8.

>

>  Copyright (C) Microsoft Corp.  All rights reserved.

>

Include with this update was a 'MS Windows update' cycle as well. I will try 
next to go back to 2.8.2 and try again.

Also, I could use some help on finding the cause.

Allen
_______________________________________________
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to