Hi,
is it possible to use shell compound commands as COMMAND
in add_custom_command()
?
Stupid example (which does not work):
add_custom_command(
OUTPUT fobar.txt
COMMAND ( echo "foo" ; echo "bar" ) > foobar.txt
)
I have already tried several combinations of COMMAND_EXPAND_LISTS
, VERBATIM
and quoting/escaping – up to now without success (using CMake 3.21.3). Any hints?
Kind regards
Ingolf