However, this doesn’t work very well. It always evaluates the build interface or computes the TARGET_FILE_DIR according the build directory instead of installation. Also, if include directories are added to the target after calling `auto_pkgconfig` it doesn’t capture those(ie it runs file(GENERATE) at config time instead of generator time).
So, is there a way to evaluate generator expressions for installation? And evaluate them at generator time?
Calling `file(GENERATE)` at installation time(with install(CODE) or install(SCRIPT)) does not solve this problem either.