CMake/Help/release/dev
Brad King dd089e08b5 install: Allow absolute EXPORT destination with relative targets (#15258)
When install(EXPORT) is given an absolute destination we cannot compute
the install prefix relative to the installed export file location.
Previously we disallowed installation of targets in such exports with a
relative destination, but did not enforce this for target property
values besides the location of the main target file.  This could lead to
broken installations when the EXPORT is installed to an absolute path
but usage requirements are specified relative to the install prefix.

Since an EXPORT installed to an absolute destination cannot be relocated
we can just hard-code the value of CMAKE_INSTALL_PREFIX as the base for
relative paths.  This will allow absolute install(EXPORT) destinations
to work with relative destinations for targets and usage requirements.

Extend the ExportImport test with a case covering this behavior.
2014-12-15 11:45:49 -05:00
..
0-sample-topic.rst Begin post-3.1 development 2014-10-14 09:29:53 -04:00
ExternalProject_CMAKE_CACHE_DEFAULT_ARGS.rst Help: Add notes for topic 'ExternalProject_CMAKE_CACHE_DEFAULT_ARGS' 2014-11-04 14:45:18 -05:00
ExternalProject_TEST_EXCLUDE_FROM_MAIN.rst ExternalProject: Add TEST_EXCLUDE_FROM_MAIN option 2014-12-05 10:24:16 +01:00
ExternalProject_UPDATE_DISCONNECTED.rst Help: Add notes for topic 'ExternalProject_UPDATE_DISCONNECTED' 2014-11-13 09:55:17 -05:00
ExternalProject_independent-step-targets.rst Help: Add notes for topic 'ExternalProject_independent-step-targets' 2014-11-04 12:56:14 -05:00
FindOpenGL-no-X11.rst FindOpenGL: Drop explicit dependency on X11 (#15268) 2014-12-01 11:05:29 -05:00
FindOpenSSL-separate-libs.rst FindOpenSSL: Report crypto and ssl libraries separately 2014-12-01 09:41:46 -05:00
add-FindIntl.rst Help: Add notes for topic 'add-FindIntl' 2014-11-13 10:11:42 -05:00
add-continue-command.rst continue: Add a new CMake language command for loop continuation (#14013) 2014-12-01 09:50:49 -05:00
add_javascript_coverage_parser.rst Help: Add notes for topic 'add_javascript_coverage_parser' 2014-11-04 14:43:14 -05:00
break-command-strictness.rst break: Add policy CMP0055 to check calls strictly 2014-11-25 14:14:20 -05:00
cached-regex-clear-fixed.rst cmMakefile: store the number of last matches in a CMake var 2014-12-03 11:06:44 -05:00
console-pool.rst Help: Add notes for topic 'console-pool' 2014-11-14 11:56:34 -05:00
cpack-rpm-component-descriptions.rst Help: Add notes for topic 'cpack-rpm-component-descriptions' 2014-11-04 14:38:59 -05:00
cpack-rpm-pre-post-install.rst Help: Add notes for topic 'cpack-rpm-pre-post-install' 2014-11-04 14:41:55 -05:00
ctest-delphi-coverage.rst Help: Add notes for topic 'ctest-delphi-coverage' 2014-11-04 13:03:22 -05:00
curl-winssl.rst curl: Use Windows SSL/TLS native implementation 2014-12-12 13:52:46 -05:00
custom-command-byproducts.rst Help: Add notes for topic 'custom-command-byproducts' 2014-11-25 10:21:55 -05:00
file-LOCK-command.rst Help: Add notes for topic 'file-LOCK-command' 2014-12-03 09:47:44 -05:00
install-EXPORT-absolute-prefix.rst install: Allow absolute EXPORT destination with relative targets (#15258) 2014-12-15 11:45:49 -05:00
try_compile-link-flags.rst try_compile: Pass linker flags into test project (#14066) 2014-12-03 15:30:22 -05:00