[cmake-developers] parallel install of different cmake versions
Orion Poplawski
orion at cora.nwra.com
Thu Dec 17 22:16:46 EST 2015
On 12/14/2015 08:56 AM, Eric Noulard wrote:
>
>
> 2015-12-14 15:42 GMT+01:00 Brad King <brad.king at kitware.com
> <mailto: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
Yes, but this cannot be done in rpm spec files for building other
packages (as would be done in EPEL). Perhaps we could leverage
environment-modules, but this would be a bit of a departure.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion at cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
More information about the cmake-developers
mailing list