[cmake-developers] Arbitrary content in JOIN genex separator
Brad King
brad.king at kitware.com
Wed Apr 24 15:57:40 EDT 2013
On 04/23/2013 03:26 PM, Stephen Kelly wrote:
> The $<JOIN> branch is almost ready, but I thought something worth bringing
> up is the use of a comma as a separator.
[snip]
> $<JOIN:one;two;three,,> # results in one,two,three
>
> Do you think that's more or less confusing? Should I implement it?
I think the literal "," is fine. Authors that think it is confusing
can choose to use $<COMMA> if they wish.
However, won't
-I$<JOIN:$<TARGET_PROP:${target},INCLUDE_DIRECTORIES>,-I>
result in
-Ia-Ib-Ic
? What decides if the output of a JOIN is a list or string?
-Brad
More information about the cmake-developers
mailing list