[CMake] CMake 2.6.2, Xcode and Fortran...
Carminati Federico
Federico.Carminati at cern.ch
Wed Oct 15 05:22:38 EDT 2008
Hello,
I am very interested in this issue and I have done some tests.
There is a problem with cmake (see http://public.kitware.com/Bug/view.php?id=7389)
, where fortran flags are assigned to C compiler during Xcode
generation. There is another "more obscure" problem (see http://public.kitware.com/Bug/view.php?id=7591)
. If I install the gfortran plugin (http://maxao.free.fr/xcode-fortran-plugin/
) then somehow, while validating the compiler during the generation of
Xcode, CMake decides to use some non-existing linker. Bill says it is
not with cmake, so I have contacted the plugin author, as Bill
suggested.
I believe a possible step forward would be to disable the plugin
(renaming is enough), generate the xcode project, re-enable the plugin
and try. However the first bug prevents me from trying this because I
need some special flags in my project. Best regards,
Federico Carminati
CERN-PH
1211 Geneva 23
Switzerland
Tel: +41 22 76 74959
Fax: +41 22 76 68505
Mobile: +41 76 487 4843
On 15 Oct 2008, at 02:38, Michael Jackson wrote:
> The Intel C++ and Fortran compilers add some Xcode plugins I believe
> when they are installed.
>
>
> _________________________________________________________
> Mike Jackson mike.jackson at bluequartz.net
> www.bluequartz.net
>
>
>
> On Oct 14, 2008, at 8:28 PM, Bill Hoffman wrote:
>
>> Dick Munroe wrote:
>>> Bill, Well, Xcode certainly supports Fortran well enough with the
>>> Intel 10.1 preview compiler to successfully build and install
>>> software using Xcode, so I'm not sure what you mean by "doesn't
>>> support Fortran" unless it's dependency stuff. So if the Intel
>>> fortran compiler works (and I have an existence proof that it
>>> does), is it a simple matter of hacking the Xcode generator to
>>> "know" about the fortran language extensions and get the
>>> lastKnownSourceFile right? Presumably you would have to look at
>>> the source file properties as well to see if it is explicitly
>>> fortran. There are some debugging issues, but from what I've heard
>>> from Intel they plan to continue to work toward better Xcode
>>> integration, so... Best, Dick Munroe Michael Jackson wrote:
>>
>> I mean gfortran:
>>
>> http://maxao.free.fr/xcode-fortran-plugin/
>>
>> Fortran is not native to Xcode. I guess intel Fortran must have
>> some sort of extra stuff for Xcode. So, yes it is a matter of
>> coding up the Xcode generator to create the right input for Xcode
>> with Fortran (not a default option at the moment). Most likely
>> different for Intel and gfortran.
>>
>> -Bill
>> _______________________________________________
>> CMake mailing list
>> CMake at cmake.org
>> http://www.cmake.org/mailman/listinfo/cmake
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list