[CMake] CMAKE_<LANG>_FLAGS added to link rule

Verweij, Arjen VerweijA at tass-safe.com
Tue Jul 13 04:40:12 EDT 2010


Hello Michael,

>Apparently, there may be - at least with GCC and shared libraries - a
>need to specify flags on the link line if they have been specified on
>the compile line before. Though, I don't know an example of a damaged
>binary due to different sets of flags for compiling and linking.

Thanks. I understand it a bit better now, but I'm not sure how other compilers implement this. Fortunately I can redefine the way cmake generates rules for the Fortran linkstage, so I'm a happy camper. Hopefully when I'm done the spirit of cmake is still alive and we have a somewhat crossplatform implementation of our build system. I need to find some more resources on how to handle special cases without manhandling cmake. Well, I digress.

Regards,
Arjen


More information about the CMake mailing list