summaryrefslogtreecommitdiffstats
path: root/Tests/Tutorial/Step6/MathFunctions
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-08 14:23:44 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-08 14:55:18 (GMT)
commit0c727b906ac943583fcfb1eb5cf3ea92d2ea030c (patch)
treee1a8c18b7528e39c2a686a12a6dd6d820a13e702 /Tests/Tutorial/Step6/MathFunctions
parentaa027af9af0193f5c47a7f2adf239858afdf3807 (diff)
downloadCMake-0c727b906ac943583fcfb1eb5cf3ea92d2ea030c.zip
CMake-0c727b906ac943583fcfb1eb5cf3ea92d2ea030c.tar.gz
CMake-0c727b906ac943583fcfb1eb5cf3ea92d2ea030c.tar.bz2
install(EXPORT): Force absolute paths for usr-move
If the absolute install(EXPORT) destination for the CMAKE_INSTALL_PREFIX used during configuration is under (/usr)?/lib(64)? then assume the current build is for a system package installation instead of a relocatable distribution. Generate an absolute path for _IMPORT_PREFIX in the target exports file instead of generating code to compute the value relative to the file location. This is necessary for distributions implementing a move to /usr such as: https://wiki.archlinux.org/index.php/DeveloperWiki:usrlib "All files in the /lib directory have been moved to /usr/lib and now /lib is a symlink to usr/lib." The relative path computation is not reliable because the targets file could be installed through cross-prefix a symlink and loaded without it or vice versa. A similar change was made for package configuration file generation by commit d4774140 (configure_package_config_file: force absolute paths for usr-move, 2013-01-24).
Diffstat (limited to 'Tests/Tutorial/Step6/MathFunctions')
0 files changed, 0 insertions, 0 deletions