[CMake] CMake 2.6.2, Xcode and Fortran...
Carminati Federico
Federico.Carminati at cern.ch
Wed Oct 15 09:35:42 EDT 2008
Hello Bill,
Thanks for your mail. I can see you are in the user support
business too ;-) "Please make a simple example". OK, you are right.
Here what I have done. I have made the simplest possible example (see
files attached). I installed the latest version from cvs and now I
have had some success:
- The "bug" where fortran flags "percolated" through C when generating
Xcode is still there. This is normal as it is still open in the bug
tracker. Would be nice to see this fixed if possible.
- However, the other problem, i.e. gfortran failing verification seems
to be gone (miracle?) I can generate an Xcode project and gfortran is
correctly verified even if the plugin is present.
- Now things are still NOT completely ok, because I have the error
message
warning: no rule to process file '/Users/fca/cmaketest/sub.F' of type
sourcecode for architecture i386
However this just happens because cmake does not put the files in the
right place. The file is
Test->Sources->hello
and therefore it has file type "sourcecode", which is generic and does
not tell Xcode what to do with it
If I just move it by hand into the right place
Test->Sources->hello->Source Files
Xcode is smart enough to give it the type sourcecode.fortran and
everything works correctly.
So the question is now, would it be possible for CMake to put Fortran
files in the "right" place treating them as source files? In this case
it will be up to Xcode to see whether it can make use of the info or
not, but at least they will be treated as source files. Thanks and
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 14:29, Bill Hoffman wrote:
> Carminati Federico wrote:
>> 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,
>
> I would suggest trying a project with only one single fortran file,
> and only enabling the Fortran language. That should help isolate
> issues.
>
> -Bill
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081015/cc639736/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sub.F
Type: application/octet-stream
Size: 75 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081015/cc639736/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.c
Type: application/octet-stream
Size: 99 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081015/cc639736/attachment-0001.obj>
More information about the CMake
mailing list