CMake/Help
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
..
command Merge topic 'doc-file-GENERATE-order' 2014-12-05 14:01:04 -05:00
generator VS: Rename VS 14 generator to 'Visual Studio 14 2015' 2014-11-14 14:23:36 -05:00
include Help: Warn that paths should not be used in INTERFACE_ build properties. 2014-11-25 10:00:35 -05:00
manual Help: Drop FeatureSummary example in cmake-developer.7 2014-12-09 08:40:17 -05:00
module Merge topic 'xerces-rename' 2014-12-05 14:02:11 -05:00
policy Merge topic 'doc-CMP0054-example' 2014-12-12 11:15:59 -05:00
prop_cache Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
prop_dir Help: Clarify add_compile_options documentation (#15225) 2014-10-29 09:18:56 -04:00
prop_gbl Help: Fix typo in CMAKE_CXX_KNOWN_FEATURES docs 2014-12-03 09:12:17 -05:00
prop_inst Help: Clarify formatting of CPACK_WIX_ACL documentation 2014-10-22 16:41:22 -04:00
prop_sf VS: Add source file property to specify Windows App deployment location 2014-12-03 09:31:59 -05:00
prop_test allow to mark a test as "Not Run" with a specific return code (#8466) 2014-01-14 23:57:40 +01:00
prop_tgt Merge topic 'doc-Nsight-Tegra-toolchain' 2014-12-03 10:01:47 -05:00
release install: Allow absolute EXPORT destination with relative targets (#15258) 2014-12-15 11:45:49 -05:00
variable Merge topic 'try_compile-link-flags' 2014-12-08 09:07:04 -05:00
index.rst Help: Add a manual for compiler feature control. 2014-05-27 09:35:00 -04:00