Brad King 6c613b433c Handle usr-move without forcing absolute paths (#14041)
In commit 0c727b90 (install(EXPORT): Force absolute paths for usr-move,
2013-03-08) and commit d4774140 (configure_package_config_file: force
absolute paths for usr-move, 2013-01-24) we supported Linux
distributions implementing the "/usr move" by assuming that installation
to (/usr)?/lib(64)? represents a non-relocatable system package.

When cross-compiling one may prepare a package for installation into a
system location on a target machine but install the package files on the
*host* machine inside another path for use with CMAKE_FIND_ROOT_PATH.
In this case the package development files must still be relocatable.

Handle "/usr move" with a new approach that works with relocatable
files.  Teach configure_package_config_file and install(EXPORT) to
generate special logic in a package configuration file or targets file
for installation under (/usr)?/lib(64)?.  Teach the file to recognize
when it is loaded through a symlink that refers to the same realpath as
its original install destination.  In such a case, use the original
install prefix.  Otherwise, compute the prefix relative to the current
file location to make it relocatable.
2013-04-03 11:19:47 -04:00
..
2013-04-03 00:01:08 -04:00
2011-09-15 16:20:33 +02:00
2013-01-07 21:20:11 +01:00
2011-10-23 22:18:08 +02:00
2010-09-10 14:42:09 -04:00
2012-09-28 17:00:52 -04:00
2012-09-28 17:00:52 -04:00
2011-10-23 22:18:08 +02:00
2012-02-02 23:40:21 +00:00
2012-07-18 12:17:39 +02:00
2012-02-21 15:33:31 -05:00
2013-02-08 13:38:56 -05:00