[CMake] pgf90 error

Arjen Markus arjen.markus at deltares.nl
Fri Nov 20 10:16:19 EST 2009


On 2009-11-20 16:11, John Vines (CISD/CIV) wrote:
> I am trying to compile a simple fortran "Hello World!" program with the 
> Portland Group compilers (version 8.0) and am running in to a problems.  
> I am using  with CMake (ver 2.8.0-rc5).
> 

> 
>   /opt/compiler/pgi/linux86-64/8.0/bin/pgf90
>   CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o -o 
> cmTryCompileExec
>   -rdynamic
> 
>   pgf90-Error-Unknown switch: -rdynamic
> 
>   gmake[1]: *** [cmTryCompileExec] Error 1

The cause is here: apparently pgf90 does not know the -rdynamic flag.
You should probably check the CMake module for that compiler.

Regards,

Arjen


More information about the CMake mailing list