> I can most of shell commands in execute_process(), but cmake failed at
> following errors when I added "sed 's/^.\///g'" to execute_process():
> Syntax error in cmake code, when parsing string 's/^.\///g', Invalid
> sequence \/, Call Stack ...
> But without the escape sequence \/, the shell command could not run, how
> I make the execute_process() run shell command with escape sequence \/ ?
You must escape the backslash, so it doesn't get stripped by the CMake
Bonus trick: you can avoid it altogether by just using a different
character as delimiter: 's,^./,,g'
Just wondering: do you want to work on some find output? Then you also
need to escape the ".".