[cmake-developers] generator expressions with variable

Ben Boeckel ben.boeckel at kitware.com
Sat Apr 19 10:28:33 EDT 2014


On Sat, Apr 19, 2014 at 12:08:42 +0200, Tim Blechmann wrote:
> $<$<BOOL:$<TARGET_PROPERTY:${TARGET},INCLUDE_DIRECTORIES>>:-I$<JOIN:$<TARGET_PROPERTY:${TARGET},INCLUDE_DIRECTORIES>, -I>>

Does it work without the variable in there. (By the time the generator
expression evaluator gets the string, it should be expanded.)

> however evaluating the expression results in this command string:
> $<1:-I$<JOIN:$ -I>>

Should that '$' be ','? Where did your literal ',' go from the above
genex?

--Ben



More information about the cmake-developers mailing list