[CMake] Use of variables in generator expressions

Tom Kacvinsky tom.kacvinsky at vectorcast.com
Wed May 28 14:04:29 EDT 2014


Hi,

I would like to do something like the following:

  add_custom_command(TARGET ${target_name} POST_BUILD
    COMMAND mt -manifest default.manifest
-outputresource:$<TARGET_FILE:${target_name}>;#1
  )

The question I have is whether variables can be used in generator
expressions.  Reading the docs, it is clear that I cannot use generator
expressions with generator expressions, but I did not see anything saying
you could (can not) use variables within generator expressions.

Is this even allowed?

Thanks,

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140528/53caa4d4/attachment.html>


More information about the CMake mailing list