I'm trying to use something like this with CMAKE 3.17.2:
# GCC options
add_compile_options($<$<CXX_COMPILER_ID:GNU>:-fmax-errors=1>)
# clang options
add_compile_options($<$<CXX_COMPILER_ID:AppleClang>:-ferror-limit=2,-Werror=unused-private-field>)
However, It seems to be impossible to add multiple options at the same time; i have tried with commas, spaces, quote-enclosing the options. Is there syntax that allows this or must every option be added individually?