Convey, Christian J CIV NUWC NWPT, B-171
2010-12-15 22:08:10 UTC
Here's what I've got:
Cmake: 2.8.3
OS X: 10.5.x
gfortran: 4.5.1
I'm trying to build a Fortran program on OS X using CMake. I'm trying to write CMakeLists.txt files that can handle either the GNU fortran compiler or the Intel fortran compiler.
When set CMAKE_OSX_ARCHITECTURES to x86_64, the resulting makefiles end up supplying "-arch x86_64" to the gfortran command line. That flag is appropriate for the Intel fortran compiler but it isn't valid for gfortran, even on a Mac. It should be "-m64".
Does anyone know of a good way around this?
Christian Convey
Scientist, NUWC Division Newport
1176 Howell St., Newport, RI 02842
email: ***@navy.mil
phone: (401) 832-6824
fax: (401) 832-4749
Cmake: 2.8.3
OS X: 10.5.x
gfortran: 4.5.1
I'm trying to build a Fortran program on OS X using CMake. I'm trying to write CMakeLists.txt files that can handle either the GNU fortran compiler or the Intel fortran compiler.
When set CMAKE_OSX_ARCHITECTURES to x86_64, the resulting makefiles end up supplying "-arch x86_64" to the gfortran command line. That flag is appropriate for the Intel fortran compiler but it isn't valid for gfortran, even on a Mac. It should be "-m64".
Does anyone know of a good way around this?
Christian Convey
Scientist, NUWC Division Newport
1176 Howell St., Newport, RI 02842
email: ***@navy.mil
phone: (401) 832-6824
fax: (401) 832-4749