[CMake] 2.8.3 fortran regression or how to find configure problem

Biddiscombe, John A. biddisco at cscs.ch
Mon Nov 8 12:06:19 EST 2010


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-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Allen D Byrne
Sent: 08 November 2010 16:18
To: cmake at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101108/d3d7546a/attachment.htm>


More information about the CMake mailing list