add_compile_options: More convenient syntax for SHELL: groups
add_compile_options
allows adding possibly-redundant groups by saying "SHELL:-myopt yet_another_value". This works, but is ugly and difficult to remember, also, auto-complete in an idea would not suggest this.
Why not have a keyword, like say REP
, which enables this for all options added with the command? e.g.
add_compile_options(REP -myopt foo -myopt bar)
(and the same thing for target_compile_options()
)
Edited by Brad King