[CMake] cmake 2.8.3 forces -rdynamic for pf90 in pure fortran projects

Bill Hoffman bill.hoffman at kitware.com
Mon Nov 22 11:51:59 EST 2010


On 11/22/2010 11:18 AM, Verweij, Arjen wrote:
> Hi,
>
> -rdynamic is used for linking with pgf90 even though it is not
> supported. The flag is imported from Linux-GNU.cmake and I guess it
> is included because cmake (2.8.3) checks for C and C++ compilers by
> default.
>
> http://www.vtk.org/Bug/view.php?id=9985 talks about this bug, but I'm
> unsure what the final conclusion is and if the bug is considered
> fixed. Even though this is a Fortran test, I can imagine it will
> break linking multi-language code as well, if you mix PGI (pgf90)
> with GNU (gcc/g++) and end up with -rdynamic because of it.

The bug says the problem is fixed.  Is that not what you are seeing?


-Bill


More information about the CMake mailing list