This website requires JavaScript.
Explore
Help
Sign In
kolan
/
CMake
Watch
1
Star
0
Fork
You've already forked CMake
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
59e6e15cde
CMake
/
Tests
/
ExportImport
/
Export
/
include
/
abs
/
testLibAbs1.h
2 lines
30 B
C
Raw
Normal View
History
Unescape
Escape
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 17:52:48 +03:00
extern
int
testLibAbs1
(
void
)
;