Re: [CMake] Changing link flags for one target

2018-07-04 Thread Marc CHEVRIER
LINK_FLAGS property do not support generator expressions. In CMake 3.13, directory and target properties LINK_OPTIONS, supporting generator expressions, managed by commands add_link_options and target_link_options are introduced, . For earlier versions you can use global variables to set flags

Re: [CMake] Changing link flags for one target

2018-07-03 Thread Hendrik Sattler
You could try a generator expression with a custom target property. Am 4. Juli 2018 04:27:58 MESZ schrieb Andrew White : >In my cross-compile environment for an embedded platform, I need to set >the stack size for each executable. The linker flag to set the stack >size is (for example)

[CMake] Changing link flags for one target

2018-07-03 Thread Andrew White
In my cross-compile environment for an embedded platform, I need to set the stack size for each executable. The linker flag to set the stack size is (for example) "-Wl,-elf2flt='-s 2'". Is there an easy way to set this flag for every executable except one, for which I set