https://github.com/Kitware/CMake
Revision 6c613b433c45efb0bb013a6bd668cbb8ac740259 authored by Brad King on 03 April 2013, 14:54:08 UTC, committed by Brad King on 03 April 2013, 15:19:47 UTC
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.
1 parent 99f7cc1
History
Tip revision: 6c613b433c45efb0bb013a6bd668cbb8ac740259 authored by Brad King on 03 April 2013, 14:54:08 UTC
Handle usr-move without forcing absolute paths (#14041)
Tip revision: 6c613b4
File Mode Size
Docs
Example
Modules
Source
Templates
Tests
Utilities
.gitattributes -rw-r--r-- 569 bytes
.hooks-config.bash -rw-r--r-- 866 bytes
CMakeCPack.cmake -rw-r--r-- 5.3 KB
CMakeCPackOptions.cmake.in -rw-r--r-- 3.4 KB
CMakeGraphVizOptions.cmake -rw-r--r-- 153 bytes
CMakeLists.txt -rw-r--r-- 24.8 KB
CMakeLogo.gif -rw-r--r-- 4.4 KB
CTestConfig.cmake -rw-r--r-- 1.0 KB
CTestCustom.cmake.in -rw-r--r-- 3.3 KB
CTestCustom.ctest.in -rw-r--r-- 145 bytes
ChangeLog.manual -rw-r--r-- 186.1 KB
ChangeLog.txt -rw-r--r-- 2.5 MB
CompileFlags.cmake -rw-r--r-- 2.5 KB
Copyright.txt -rw-r--r-- 2.6 KB
DartConfig.cmake -rw-r--r-- 809 bytes
DartLocal.conf.in -rw-r--r-- 4.0 KB
Readme.txt -rw-r--r-- 1.9 KB
bootstrap -rwxr-xr-x 52.2 KB
cmake_uninstall.cmake.in -rw-r--r-- 796 bytes
configure -rwxr-xr-x 99 bytes
doxygen.config -rw-r--r-- 27.4 KB

Readme.txt

back to top