Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Installing CMAKE Locally

Having an utpo date cmake is quite useful when building code.

Extra Tip: Useful for packages such as YCM

From the downloads page, get the latest cmake and extract to your desired location.

then cd into the directory

tar -xf cmake*.tar.gz
cd cmake*

I set the install prefix to local but I’s upto you where you keep the installation files.

./configure --prefix=$HOME/.local
make 
make install

reboot

these steps will install cmake locally.

source