file(GENERATE): Define behavior for INSTALL_INTERFACE and BUILD_INTERFACE
When exporting build targets or build options from a CMake build (to write a pkg-config file, for instance), it would be nice to be able to expand generator expressions using INSTALL_INTERFACE. Or maybe there is already a way to do that? Currently I replace $<INSTALL_INTERFACE: with $<BUILD_INTERFACE: and vise versa before calling file(GENERATE), and I would like to have a cleaner way for the task.
Edited by Brad King