[cmake-developers] parallel install of different cmake versions
Eric Noulard
eric.noulard at gmail.com
Mon Dec 14 10:56:08 EST 2015
2015-12-14 15:42 GMT+01:00 Brad King <brad.king at kitware.com>:
> On 12/11/2015 06:42 PM, Orion Poplawski wrote:
> > For Fedora EPEL we often end up packaging newer versions of cmake as
> cmakeXY
> > (e.g. cmake34) that can be installed in parallel with the system cmake.
> This
> > is a fairly invasive process. I'm attaching the current patch I'm
> working on
> > for this. Is there any interest in cmake itself for supporting this
> kind of
> > thing?
>
> Not particularly. That does look pretty invasive.
>
> Why not just install it to /usr/lib/cmake34 with normal names and symlink
> the versioned names? E.g.
>
> /usr/bin/cmake34 -> /usr/lib/cmake34/bin/cmake
> /usr/bin/ctest34 -> /usr/lib/cmake34/bin/ctest
>
+1
Personnally when I installed several version of CMake I do install them
with a particular prefix and then I use update-alternatives(1) to install
proper symlinks to the specific location.
I switch from one version to another using update-alternatives(1).
This can certainly be used on Fedora/EPEL as well:
https://fedoraproject.org/wiki/Packaging:Alternatives
--
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20151214/7e015244/attachment-0001.html>
More information about the cmake-developers
mailing list