Add TARGET argument to file(GENERATE)
As reported in #21074 (closed) there are downstream projects doing target introspection to generate pkg-config files using file(GENERATE)
. This however runs into issues when the target's interface options or such include generator expressions which can only be evaluated for targets.
It seems easy enough to add a new TARGET
option to file(GENERATE)
to specify a target to use when evaluating generator expressions.
Edited by Raul Tambre