[CMake] Install CMake3.0 as alternate

Nils Gladitz nilsgladitz at gmail.com
Tue Jul 15 08:49:39 EDT 2014


On 07/15/2014 02:31 PM, Bradley Lowekamp wrote:
> Hello,
>
> Is there a way I can configure CMake when I build it so it's executable with have a "3" or "3.0" suffix, so that I can easily have multiple version of cmake installed into "/usr/local"?
>
> I am looking for something similar to python's altinstall or gcc's "program-suffix" option.
>

I'd install CMake with a custom prefix e.g. 
"-DCMAKE_INSTALL_PREFIX=/opt/cmake-3.0".

And create appropriate symlinks or aliases.
e.g. ln -s /opt/cmake-3.0/bin/cmake /usr/local/bin/cmake-3.0

Or run it with full path.

Nils



More information about the CMake mailing list