Re: [CMake] [CMake ] Specify linker for a mixed language Fortran/C++ application (linux)

2011-06-29 Thread Michael Hertling
On 06/29/2011 10:04 AM, Yngve Inntjore Levinsen wrote: > Tirsdag 28 juni 2011 18.52.48 skrev Raphael Muenster : >> Yep, great) setting the LINKER_LANGUAGE to Fortran did it. >> >> Thanks, >> Raphael >> >> Am 28.06.2011 15:48, schrieb Brad King: >>> On 06/27/2011 02:39 PM, Raphael Münster wrote: >>

Re: [CMake] [CMake ] Specify linker for a mixed language Fortran/C++ application (linux)

2011-06-29 Thread Yngve Inntjore Levinsen
Tirsdag 28 juni 2011 18.52.48 skrev Raphael Muenster : > Yep, great) setting the LINKER_LANGUAGE to Fortran did it. > > Thanks, > Raphael > > Am 28.06.2011 15:48, schrieb Brad King: > > On 06/27/2011 02:39 PM, Raphael Münster wrote: > >> # name of the project > >> PROJECT(Q2P1) > >> > >> enable_

Re: [CMake] [CMake ] Specify linker for a mixed language Fortran/C++ application (linux)

2011-06-28 Thread Raphael Muenster
Yep, great) setting the LINKER_LANGUAGE to Fortran did it. Thanks, Raphael Am 28.06.2011 15:48, schrieb Brad King: On 06/27/2011 02:39 PM, Raphael Münster wrote: # name of the project PROJECT(Q2P1) enable_language (Fortran) Languages can also be specified in the project command: project(

Re: [CMake] [CMake ] Specify linker for a mixed language Fortran/C++ application (linux)

2011-06-28 Thread Brad King
On 06/27/2011 02:39 PM, Raphael Münster wrote: > # name of the project > PROJECT(Q2P1) > > enable_language (Fortran) Languages can also be specified in the project command: project(Q2P1 C CXX Fortran) > I invoke cmake like this "CC=mpicc CXX=mpic++ cmake > -DCMAKE_Fortran_COMPILER=mpif90" F

Re: [CMake] [CMake ] Specify linker for a mixed language Fortran/C++ application (linux)

2011-06-27 Thread Brad King
On 06/27/2011 02:39 PM, Raphael Münster wrote: > enable_language (Fortran) > > set(CMAKE_Fortran_COMPILER "mpif90") Set the compiler variable *before* enabling the language. The enable_language command does a whole bunch of introspection of the compiler. -Brad __

[CMake] [CMake ] Specify linker for a mixed language Fortran/C++ application (linux)

2011-06-27 Thread Raphael Münster
Hello, I ran into some trouble trying to link a mixed language Fortran/C++ program. I used a CMakeLists.txt that looks about like this: # cmake version cmake_minimum_required(VERSION 2.8) # name of the project PROJECT(Q2P1) enable_language (Fortran) set(CMAKE_Fortran_COMPILER "mpif90") # a