Feature request: generator expression support for relative target paths in link flags/options.
Our project is a collection of libraries and binaries and until now (i.e. using LOCATION), we could compute the relative paths from binary to its libraries in the makefiles and append to rpath in linker flags. CMP0026 requires us to not use LOCATION, but there seems to be no support for something like this in generator expressions:
file(RELATIVE relpath $<TARGET_FILE_DIR:mytarget> $<TARGET_FILE_DIR:mytargetlib>)
Apparently future versions of cmake will support LINK_OPTIONS that does take generator expressions, but we would still need the relative diff above.
Our binaries and libraries are at flexible locations and we found the relative rpath support as described above useful to keep modularity.
Any support for this would be appreciated!