Customizing linker and redirecting the STDIO to a file

Thanks, I now use
set( CMAKE_C_LINK_EXECUTABLE “/bin/sh -c '${CMAKE_C_LINKER} <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> > <TARGET>.map '” )

and it works.

Christoph