[cmake-developers] Custom Command Escapes
Brad King
brad.king at kitware.com
Thu Sep 28 11:12:30 EDT 2006
Brad King wrote:
> 2.) Add a VERBATIM argument to explicitly enable the new behavior:
>
> ADD_CUSTOM_TARGET(some_target VERBATIM
> COMMAND some_exe -DVAR='single-quotes'
> )
>
> pro: Completely compatible. New syntax is needed to change behavior.
> con: The correct behavior has ugly syntax compared to the old behavior.
[snip]
> Note that the cases when working old behavior is changed by the new code
> are rare. The above single-quotes example was contrived. The same
> example with backslashes breaks with the old behavior. Most working
> code will continue to work because it does not need to work-around this
> bug. For this reason I'm tempted to choose #4.
I've decided to go with option #2 since most users won't have to use the
option anyway.
-Brad
More information about the cmake-developers
mailing list