CMake/Tests/ExportImport/Export
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
..
Interface Features: Extend concept to C language. 2014-05-15 00:15:18 +02:00
include/abs install: Allow absolute EXPORT destination with relative targets (#15258) 2014-12-15 11:45:49 -05:00
renamed Add EXPORT_NAME property. 2013-05-18 10:00:48 +02:00
sublib Rename variable for including current directory in interfaces 2013-03-19 16:44:17 -04:00
CMakeLists.txt install: Allow absolute EXPORT destination with relative targets (#15258) 2014-12-15 11:45:49 -05:00
cmp0022.cpp Export: Generate INTERFACE_LINK_LIBRARIES property on targets. 2013-07-08 22:39:57 +02:00
cmp0022.h Export: Generate INTERFACE_LINK_LIBRARIES property on targets. 2013-07-08 22:39:57 +02:00
cmp0022_vs6_1.cpp Export: Generate INTERFACE_LINK_LIBRARIES property on targets. 2013-07-08 22:39:57 +02:00
cmp0022_vs6_2.cpp Export: Generate INTERFACE_LINK_LIBRARIES property on targets. 2013-07-08 22:39:57 +02:00
empty.cpp Fix crash on export of target with empty INTERFACE_INCLUDE_DIRECTORIES. 2013-07-29 15:50:24 +02:00
systemlib.cpp Always consider includes from IMPORTED targets to be SYSTEM. 2013-09-24 20:00:31 +02:00
systemlib.h Always consider includes from IMPORTED targets to be SYSTEM. 2013-09-24 20:00:31 +02:00
testExe1.c
testExe1lib.c
testExe2.c
testExe2lib.c
testExe2libImp.c
testExe3.c
testLib1.c
testLib1file1.txt install: Support generator expressions in FILES and PROGRAMS mode 2014-02-21 17:05:26 -05:00
testLib1file2.txt install: Support generator expressions in FILES and PROGRAMS mode 2014-02-21 17:05:26 -05:00
testLib2.c
testLib3.c
testLib3Imp.c
testLib3ImpDep.c
testLib4.c
testLib4.h Use linked frameworks as a source of include directories. 2013-07-24 11:49:06 -04:00
testLib4lib.c
testLib4libdbg.c
testLib4libdbg1.c
testLib4libopt.c
testLib4libopt1.c
testLib5.c
testLib6.cxx
testLib6c.c
testLibAbs1.c install: Allow absolute EXPORT destination with relative targets (#15258) 2014-12-15 11:45:49 -05:00
testLibCycleA1.c
testLibCycleA2.c
testLibCycleA3.c
testLibCycleB1.c
testLibCycleB2.c
testLibCycleB3.c
testLibDepends.c
testLibRequired.c
testSharedLibDepends.cpp Add EXPORT_NAME property. 2013-05-18 10:00:48 +02:00
testSharedLibDepends.h Add EXPORT_NAME property. 2013-05-18 10:00:48 +02:00
testSharedLibRequired.cpp Allow generator expressions in LINK_INTERFACE_LIBRARIES. 2013-01-10 23:04:06 +01:00
testSharedLibRequired.h Allow generator expressions in LINK_INTERFACE_LIBRARIES. 2013-01-10 23:04:06 +01:00
testSharedLibRequiredUser.cpp try_compile: Extract IMPORTED targets from LINK_DEPENDENT_LIBRARIES 2013-08-26 11:36:57 -04:00
testSharedLibRequiredUser.h try_compile: Extract IMPORTED targets from LINK_DEPENDENT_LIBRARIES 2013-08-26 11:36:57 -04:00
testSharedLibRequiredUser2.cpp try_compile: Extract IMPORTED targets from INTERFACE_LINK_LIBRARIES 2013-08-26 11:37:00 -04:00
testSharedLibRequiredUser2.h try_compile: Extract IMPORTED targets from INTERFACE_LINK_LIBRARIES 2013-08-26 11:37:00 -04:00