linux系统 Ubuntu14.04+indigo
cd ~
wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
tar xvf cmake-3.5.2.tar.gz
cd cmake-3.5.2
./bootstrap --prefix=/usr
make
sudo make install
check:
cmake --version
结果:
sy@sy-X550JX:~/cmake-3.5.2$ cmake --version
cmake version 3.5.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).