<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" face="'Lucida Sans'">Hi all,</font><div><font class="Apple-style-span" face="'Lucida Sans'"><br></font></div><div><font class="Apple-style-span" face="'Lucida Sans'">I am trying move my project from Linux to Mac. I have modified some cmake files to successfully generate Makefile, but I'd like generate xcodeproj file for use in Xcode. A few errors appeared, as following:</font></div><div><font class="Apple-style-span" face="'Lucida Sans'"><br></font></div><div><font class="Apple-style-span" face="'Lucida Sans'">1. Fortran compiler</font></div><div><font class="Apple-style-span" face="'Lucida Sans'">In the command line output of running "cmake -G Xcode ../<project src>", I can see that the Fortran compiler is 32-bit</font></div><div><font class="Apple-style-span" face="'Lucida Sans'"><br></font></div><div><div><font class="Apple-style-span" face="'Lucida Sans'">-- Checking whether /opt/intel/Compiler/11.1/076/bin/</font><font class="Apple-style-span" color="#FF0000"><font class="Apple-style-span" face="'Lucida Sans'">ia32</font></font><font class="Apple-style-span" face="'Lucida Sans'">/ifort supports Fortran 90</font></div><div><font class="Apple-style-span" face="'Lucida Sans'">-- Checking whether /opt/intel/Compiler/11.1/076/bin/</font><font class="Apple-style-span" color="#FF0000"><font class="Apple-style-span" face="'Lucida Sans'">ia32</font></font><font class="Apple-style-span" face="'Lucida Sans'">/ifort supports Fortran 90 -- yes</font></div><div><font class="Apple-style-span" face="'Lucida Sans'"><br></font></div><div><font class="Apple-style-span" face="'Lucida Sans'">but when I built project in Xcode, I found the actual Fortran compiler is "</font><span class="Apple-style-span" style="font-size: 11px; "><font class="Apple-style-span" face="'Lucida Sans'">/Developer/usr/local/bin/ifort-11.1-base/bin/</font><font class="Apple-style-span" color="#FF0000"><font class="Apple-style-span" face="'Lucida Sans'">intel64</font></font><font class="Apple-style-span" face="'Lucida Sans'">/ifort". It is so strange. Why is that?</font></span></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="'Lucida Sans'"><br></font></span></font></div><div><font class="Apple-style-span" face="'Lucida Sans'" size="3"><span class="Apple-style-span" style="font-size: 11px;"><span class="Apple-style-span" style="font-size: medium; ">2. Fortran flags</span></span></font></div><div><font class="Apple-style-span" face="'Lucida Sans'">I have added "-r8" to CMAKE_Fortran_FLAGS. It took effect when generating Makefile, but not when generating xcodeproj.</font></div><div><font class="Apple-style-span" face="'Lucida Sans'"><br></font></div><div><font class="Apple-style-span" face="'Lucida Sans'">3. include path and module path are not correct.</font></div><div><font class="Apple-style-span" face="'Lucida Sans'"><br></font></div><div><font class="Apple-style-span" face="'Lucida Sans'">Thanks for help!</font></div><div><font class="Apple-style-span" face="'Lucida Sans'"><br></font></div><div><font class="Apple-style-span" face="'Lucida Sans'">DONG Li</font></div><div><font class="Apple-style-span" face="'Lucida Sans'"><br></font></div><div><font class="Apple-style-span" face="Menlo" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Menlo" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div></div></body></html>