You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The choice is deliberate to have COMMAND and COMMAND-like keywords to behave this way because on average it seems to have better readability instead of blowing all arguments in separate line. It's also supported way of formatting for custom commands which have command_line hint in their definition. There's also an easy way to force line break in such case with empty comment:
add_custom_command(
OUTPUT${SOMETHING_TO_OUTPUT}COMMAND
some_command --with-option-one foo --with-option-two bar --with-set-of-things foo bar baz
COMMAND
some_command #
--with-option-one foo #
--with-option-two bar #
--with-set-of-things foo bar baz
)
Having said all that I'll have to extend README to explain this deliberate choice along with listing of command-keyword pairs for which it's applicable out of the box. I'll update README soon-ish.
I've expanded description of style in README to explain this behaviour and to provide a hint of forcing particular expansion pattern with empty comment.
The text was updated successfully, but these errors were encountered: