Cannot use generator expressions in BYPRODUCTS
While trying to wire up things correctly for Ninja, I discovered that I couldn't use generator expressions for BYPRODUCTS
in an add_custom_command(TARGET foo POST_BUILD ...)
. Since the target location could feasibly change, it would have been nice to pull the target dir using $<TARGET_FILE_DIR:tgt>
expression.