CMake/Tests/ExportImport
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
..
Export install: Allow absolute EXPORT destination with relative targets (#15258) 2014-12-15 11:45:49 -05:00
Import install: Allow absolute EXPORT destination with relative targets (#15258) 2014-12-15 11:45:49 -05:00
CMakeLists.txt Tests: Add generator platform support 2014-09-10 11:21:50 -04:00
InitialCache.cmake.in Tests: Rename CMAKE_TEST_MAKEPROGRAM uses for nested test projects 2014-03-03 15:26:48 -05:00
main.c ENH: Added ExportImport test to test new export/import features. 2008-01-28 08:40:21 -05:00