Re: [CMake] Preprocessed linker script

2008-10-03 Thread Vladimir
Hello Alexander, Thanks a lot for your suggestion, it works well for me ! Alexander Neundorf wrote: > On Monday 29 September 2008, Vladimir wrote: >> Hello, >> >> I want to link an executable with custom linker script, but my script >> have to be preprocessed with cpp. I've tried using add_custo

Re: [CMake] Preprocessed linker script

2008-10-02 Thread Alexander Neundorf
On Monday 29 September 2008, Vladimir wrote: > Hello, > > I want to link an executable with custom linker script, but my script have > to be preprocessed with cpp. I've tried using add_custom_command and > add_dependencies: > > set(MOD_LINKER_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/kernel_mod.ld) > add_

[CMake] Preprocessed linker script

2008-09-29 Thread Vladimir
Hello, I want to link an executable with custom linker script, but my script have to be preprocessed with cpp. I've tried using add_custom_command and add_dependencies: set(MOD_LINKER_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/kernel_mod.ld) add_custom_command(OUTPUT ${MOD_LINKER_SCRIPT} cpp -nostdin