[CMake] linker scripts and dependencies

Chris Bayley chris at codeweaver.co.nz
Thu May 27 18:23:55 EDT 2010


I am getting to grip with cmake on an embedded system (ARM Cortex M3), 
but I can't figure out if there is a better way to specify the linker 
script file than with:

set(CMAKE_EXE_LINKER_FLAGS "-T ${LINKER_SCRIPT}")

if that then is way to do it, then what is the best way to add 
${LINKER_SCRIPT} as dependency of the target EXE ?
i.e every touch of the linker script should cause the target to be relinked.

Cheers,


More information about the CMake mailing list