[cmake-developers] CMAKE_INSTALL_PREFIX vs CMAKE_SYSROOT ?
Alexander Neundorf
neundorf at kde.org
Tue Jul 16 16:24:55 EDT 2013
On Wednesday 10 July 2013, Stephen Kelly wrote:
> Brad King wrote:
...
> > CMake-generated export files
> > are relocatable and do not even know the original install prefix
>
> Right, but the program may need it hardcoded for whatever reason. In the
> case of Qt, several installation paths are hardcoded. For unit tests which
> are to be run on the target, there may be reasons to hardcode the
> installation path too.
If I'm not missing something, auto-generated install RPATHs
(INSTALL_RPATH_USE_LINK_PATH) are wrong, since they use the path as it is seen
from the host but not from the target.
Alex
More information about the cmake-developers
mailing list