cmake是一款非常著名的跨平台make工具, 今天看一下如何在Linux上安装新版本的cmake。 包含以下步骤:

一、下载安装包 

下载地址:https://cmake.org/download/

wget https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2.tar.gz

二、编译安装

tar xf cmake-3.13.2.tar.gz
cd cmake-3.13.2
./bootstrap --prefix=$HOME/local
make && make install

三、检查安装

export PATH=$HOME/local/bin:$PATH
cmake --version

    cmake version 3.13.2

    CMake suite maintained and supported by Kitware (kitware.com/cmake).

 

Logo

更多推荐