[CMake] Does the echo command use the system shell?
Óscar Fuentes
ofv at wanadoo.es
Thu Jul 29 12:31:45 EDT 2010
Andreas Pakulat <apaku at gmx.de> writes:
[snip]
> add_custom_command( OUTPUT build.h
> COMMAND cmake -E echo \"\#define FOO \\"bar\\"\" >build.h )
Well, it even makes sense, although it is not immediately
obvious. Thanks!
> You can easily see your mistake by running (n)make VERBOSE=1 to see the
> actual cmake -E execution.
IMHO if "echo" creates different output for the same literal string on
different platforms, that's a problem.
More information about the CMake
mailing list