MantisBT - CMake
View Issue Details
0007591CMakeCMakepublic2008-09-02 11:062016-06-10 14:30
Federico Carminati 
Bill Hoffman 
normalmajoralways
closedmoved 
CMake-2-6 
 
0007591: XCode plugin interfere with CMake behaviour
CMake does not support the generation of XCode projects containing Fortran files. This is known and indeed XCode itself does not support it. However it does exist an XCode plugin (http://maxao.free.fr/xcode-fortran-plugin/ [^]) that introduces support for fortran in XCode. If this plugin is installed, CMake fails to produce an XCode project file because validation of gfortran fails. This seems to be an incorrect behaviour, because the fortran compiler is the same, whatever is the XCode plugin. The error message is in the attached file.
Note that gfortran continues working fine with and without plugin, but for some reason CMake believes that in case the plugin is installed in ~Library/Application Support/Developer/Shared/XCode, it has to look for the linker in /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/gcc, which is a non-existing file.
I believe validation of the compiler should proceed in the same way with or without plugins.


No tags attached.
log error.log (3,563) 2008-09-02 11:06
https://public.kitware.com/Bug/file/1697/error.log
Issue History
2008-09-02 11:06Federico CarminatiNew Issue
2008-09-02 11:06Federico CarminatiFile Added: error.log
2008-09-02 12:27Federico CarminatiNote Added: 0013252
2008-09-03 14:32Bill HoffmanNote Added: 0013278
2008-09-03 14:33Bill HoffmanNote Added: 0013279
2008-09-11 10:22Bill HoffmanStatusnew => assigned
2008-09-11 10:22Bill HoffmanAssigned To => Bill Hoffman
2008-10-16 02:47Federico CarminatiNote Added: 0013889
2016-06-10 14:27Kitware RobotNote Added: 0041447
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0013252)
Federico Carminati   
2008-09-02 12:27   
After some more debugging, I found one single line that is the offender. The line is in the fortran.pbcompspec files, which describes how to compile a source file and it is the line

             FileTypes = (sourcecode.fortran);

This line seems to be correct, and therefore I cannot explain why CMake changes the linker when this line is uncommented.
(0013278)
Bill Hoffman   
2008-09-03 14:32   
CMake is not actually running when you get the error. It is an Xcode issue. CMake is creating an Xcode project that the fortran plugin does not like for some reason. If you can figure out what needs to be changed in the project.pbxproj
file to make this work, I can make that change in the cmake Xcode generator.
(0013279)
Bill Hoffman   
2008-09-03 14:33   
Perhaps you should ask the xcode fortran plugin code developers to help here?
(0013889)
Federico Carminati   
2008-10-16 02:47   
I have done some more investigation on this. With the latest cvs version of cmake the error goes away, however the .F .f etc. files are still imported in Xcode with the type sourcecode, while it should be sourcecode.fortran. If this is changed in Xcode, then, provided a suitable fortran plugin is installed, everything seems to work. So I would like to turn this bug report into a feature request, that the .F .f etc files be added to Xcode by the CMake generator as sourceode.fortran, as it seems reasonable, whether or not Xcode can do something with them afterwards or not.
(0041447)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.