[CMake] Problem with Xcode

Carminati Federico Federico.Carminati at cern.ch
Wed Jul 16 15:14:52 EDT 2008


Bill,
   Great! Then let's start with this

# -*- mode: cmake -*-

Project(Test)

Cmake_Minimum_Required(VERSION 2.6)

Set(CMAKE_Fortran_COMPILER gfortran)
Enable_Language(Fortran)

Add_Executable(hello hello.F)


hello.F is

program hello
print *, 'Hello World'
end

the unix makefile work (!), but not the xcode. It just does nothing.  
So, any chance for this to be supported by cmake? best,

Federico Carminati
CERN-PH
1211 Geneva 23
Switzerland
Tel: +41 22 76 74959
Fax: +41 22 76 79480
Mobile: +41 76 487 4843

On 16 Jul 2008, at 21:07, Bill Hoffman wrote:

> Carminati Federico wrote:
>> Hello Mike,
>>   I have no idea, I could try. However if cmake does support  
>> fortran and does support xcode, and if you cannot make a xcode  
>> project out of a cmake set of files that otherwise support a unix  
>> makefile, there is a contraddiction somewhere.... As a matter of  
>> fact, if I only include fortran files the Unix makefile work, but  
>> not the xcode project. Can anyone shed some light on this?
>
> I don't think anyone has ever tried/tested fortran support from  
> Xcode. No contradiction, just not tested or implemented.  Looks like  
> it could be supported:
>
> http://macresearch.org/xcode_tutorial_fortran_only_projects
>
>
> -Bill



More information about the CMake mailing list