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:
>>
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_
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(
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
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
__
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