I am messing around with build time source file generator, and I came across a strange behavior. If I have the following:
ADD_CUSTOM_COMMAND(
OUTPUT
${GENERATED_FILE}
COMMAND
echo "// generated file" > ${GENERATED_FILE}
echo "debugging echo"
DEPENDS
my_object_library
VERBATIM
)
The generated file ends up with
// generated file echo debugging echo
Anyone know why?