Ubuntu下安装CMake

apt安装CMake


  • cmake安装第一个方式通过apt安装,但这种方式安装版本不是最新的稳定版本:
sudo apt install cmake


源码下载安装


ln -sf ${CMAKE_PATH}/bin/*  /usr/bin/

然后通过 cmake -version验证安装是否成功,会出现: 表示安装成功

rui@HOPO:~$ cmake -version
cmake version 3.12.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).

猜你喜欢

转载自blog.csdn.net/qq_31261509/article/details/83751832