[CMake] Does the echo command use the system shell?
ofv at wanadoo.es
Thu Jul 29 12:31:45 EDT 2010
Andreas Pakulat <apaku at gmx.de> writes:
> 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
> 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