Re: [CMake] FortranCInterface_VERIFY problem on Mac

2011-04-12 Thread Michael Jackson
It looks like your fortran compiler by default compiles in 32 bit (i386) where as GCC on OS X 10.6 defaults to 64 bit (x64). You probably need to provide some compiler flags to the fortran compiler in order to get it to compile in 64 bit mode. The error is actually pretty easy to read: > -lgfor

[CMake] FortranCInterface_VERIFY problem on Mac

2011-04-12 Thread tog
Hi, I am quite new to CMake. I want to use it for compiling an application mixing C & Fortran. I have narrowed down a CMake file to this: PROJECT(dummy) # Set the minimum version of cmake required to 2.6 CMAKE_MINIMUM_REQUIRED( VERSION 2.6 ) ENABLE_LANGUAGE(Fortran) INCLUDE(FortranCInterface)