-E echo "(" crashes the generated build system
There should be some way to have an add_custom_target that can write arbitrary text to stdout. I think the recommended mechanism would be "-E echo", but echo does not handle special characters like "(", even when escaped.
Attached is a minimal CMake project that demonstrates the problem. invoking the target "usage" will crash the build system.
AFAICT the only workaround is to invoke a script, e.g. a cmake script a python script,
that is portable and can write arbitrary text to stdout.
For context my use-case is having a help text in the generated build system, e.g.
cmake .. make usage
Edited by Sebastian Bøe