[cmake-developers] CMAKE_INSTALL_PREFIX vs CMAKE_SYSROOT ?

Brad King brad.king at kitware.com
Mon Jul 8 14:27:35 EDT 2013


On 7/8/2013 11:57 AM, Stephen Kelly wrote:
> You mean a case like installing to 
>  /opt/kf5-cross
> where 
>  /opt/kf5-cross/lib -> /opt/kf5-cross/usr/lib
> and where we install /opt/kf5-cross/usr/lib/cmake/KArchive.cmake ?

Yes.

> I think the cmake code generated in that method would have to also contain a 
> check relative to the CMAKE_HOST_INSTALL_PREFIX, which is a bit unfortunate. 
> I can't see another way the logic would work for the same file content post-
> deployment, and pre-deployment on the host.

On the host the <prefix>/lib should not be a cross-prefix symlink so
I don't think we need a check against CMAKE_HOST_INSTALL_PREFIX.

The main discussion in this thread got left behind a few messages back
so I'll pick up there with a separate response.

-Brad



More information about the cmake-developers mailing list