转自:http://cameo54321.blogspot.com/2014/02/installing-cmake-288-or-higher-on.html
- Check the version of your Cmake using cmake --version
- If 2.8.7, Download the latest CMake version from the CMake web site
- Uncompress it in a new folder
- Create a _build directory in the folder: mkdir _build
- From the _build directory, run the following commands to build and install CMake from sources:
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr make sudo make install sudo ldconfig