That works for me.  Thanks Bill!

On Fri, Oct 30, 2009 at 6:08 PM, Bill Hoffman <bill.hoff...@kitware.com>wrote:

> Kelly (KT) Thompson wrote:
>
>> Hi,
>>
>> I am trying to use Intel ifort on Linux to compile source code that uses
>> the extension .F95.  By default, ifort will not compile files with this
>> extension.  To allow the compilation, the name of the source file must be
>> preceded by -Tf (treat the next option as fortran source). While I know how
>> to modify the Fortran flags, I don't know how to add the '-Tf' flag that is
>> directly in front of the source file name (and after the -c).  Can anyone
>> point me in the right direction?
>>
>>
> You could try this:
>
> Edit
> /Modules/Platform/Linux-Intel-Fortran.cmake
>
> And add this:
>
>  SET(CMAKE_Fortran_COMPILE_OBJECT
>    "<CMAKE_Fortran_COMPILER> -o <OBJECT> <DEFINES> <FLAGS> -c -Tf
> <SOURCE>")
>
> I think that will work.
>
>
> -Bill
>
_______________________________________________
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