[CMake] Custom Commands & Generator Expressions

Stephen Kelly steveire at gmail.com
Wed Jan 29 16:13:28 EST 2014


Steven Wilson wrote:

> "\$<1:strip" -u -r customcommandtest>
> 
> Note the "\$<1:strip" -u -r customcommandtest> output from the generator
> expression.
> 
> What do I need to change in the POST_BUILD custom command to make the
> generator expression work correctly?

The generator expression stops parsing at whitespace. I believe you're 
hitting a problem related to what is discussed in this thread:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/7063

It will require patching CMake, but there is no one working on a patch yet.

 http://public.kitware.com/Bug/view.php?id=14353

Thanks,

Steve.





More information about the CMake mailing list