[cmake-developers] CMAKE_INSTALL_PREFIX vs CMAKE_SYSROOT ?
Brad King
brad.king at kitware.com
Mon Jul 15 08:50:02 EDT 2013
On 07/14/2013 10:13 AM, Samuel Martin wrote:
> I'd like to give a point of view of a user.
Great, thanks for your input.
> To stick back to this thread, I have not used the CMAKE_SYSROOT variable yet.
> But imho, it should only affect the compiler flags, not the install
> rules because the given sysroot may be read-only for whatever reason.
Yes, I agree. FYI for now we've reverted CMAKE_SYSROOT so we can
re-introduce it later properly integrated with CMAKE_OSX_SYSROOT.
> IMHO, the only install locations that matter are the staging area and
> the target one, which should
> be defined by the combination of the DESTDIR and CMAKE_INSTALL_PREFIX variables.
>
> If someone wants to install somewhere else for development purpose
> (say, nfs or chroot), then
> he/she can rerun the install phase with a new DESTDIR.
The simplicity of this does make sense.
On 07/04/2013 04:29 AM, Stephen Kelly wrote:
> Goals:
> * Install to /opt/kf5 on the target
> * Install to $HOME/dev/kf5 on the host
Steve, why do we need to have the host location not end in the
target's install prefix?
Thanks,
-Brad
More information about the cmake-developers
mailing list