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

Verweij, Arjen VerweijA at tass-safe.com
Mon Nov 22 11:18:56 EST 2010


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.

Thanks,
Arjen


More information about the CMake mailing list