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
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)
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