Memo of build CMake from source with CMake

agenda

already installed cmake 2.8.2. with apt of squeeze of debian.
and update cmake 2.8.10 with source.

check version
$ cmake --version
cmake version 2.8.2

get source

get the cmake source code.

wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz

build

get code is build.*1

bootstrap
$ tar -zxf cmake-2.8.10.2.tar.gz
$ cd cmake-2.8.10.2/
$ ./bootstrap \
  --prefix=/usr/local/cmake-2.8.10 \
  --no-system-libs
edit config

use ccmake, if fixing config with GUI.*2

$ ccmake .

and edit(add Release into CMAKE_BUILD_TYPE option)

if edit CUI.
similarly edit the CMakeCache.txt.

CMAKE_BUILD_TYPE:STRING=Release

install

$ make test
$ sudo make install