Re: [CMake] external link dependency, non-library

2010-09-07 Thread Michael Hertling
On 09/08/2010 12:11 AM, SK wrote: > Alright, I ended up rototilling and using a dummy file approach, as in: > > SET( _relink_dummy "${CMAKE_CURRENT_BINARY_DIR}/relink_dummy.c" ) > ADD_EXECUTABLE( ${_app_name} ${_app_srcs} ${_relink_dummy} ) > SET_SOURCE_FILES_PROPERTIES( ${_relink_dumm

Re: [CMake] external link dependency, non-library

2010-09-07 Thread SK
Alright, I ended up rototilling and using a dummy file approach, as in: SET( _relink_dummy "${CMAKE_CURRENT_BINARY_DIR}/relink_dummy.c" ) ADD_EXECUTABLE( ${_app_name} ${_app_srcs} ${_relink_dummy} ) SET_SOURCE_FILES_PROPERTIES( ${_relink_dummy} PROPERTIES GENERATED TRUE ) ADD_CUSTO

[CMake] external link dependency, non-library

2010-09-07 Thread SK
Hello, I have an external build process that produces a linker script that I must use in my CMake project. I must leave the external build as-is. I'm using gcc in Linux. I must relink my application built with CMake if the linker script changes. I'm trying to do this in a simple macro and it's