install(EXPORT): Option to force use of absolute paths in install files
I'm working on a system where development-related files and production files aren't stored together, and as such dev files are moved after installation and symlinks are created instead so these can work properly
It turns out however that by default cmake will try to use relative paths between the cmake files and the installed files, leading to issues when moving the cmake files away since these are development-specific.
I'm guessing I might not be the only one to find cmake's attempt at making paths relative by default to be problematic, and as such I think it could be nice to have a way to toggle this behavior.
For now I fix that by removing from the cmake code the part that generates relative paths, however that's probably not appropriate for most people. If this could instead be triggered via a parameter/define/env var/etc, it would work perfectly for me (not sure what's appropriate for this but I'm happy to submit a proper patch based on what's best).