Andreas Pakulat <ap...@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.

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to