The CMake package contains a modern toolset used for generating Makefiles. It is a successor of the auto-generated configure script and aims to be platform- and compiler-independent. A significant user of CMake is KDE since version 4.
CMake can be installed using an existing version of CMake or relying on a bootstrap version. We will use the bootstrap version. Prepare CMake for compilation:
unset host_alias CC CXX CFLAGS DESTDIR export DESTDIR=~/cross-tools ./bootstrap --prefix=/usr \ --mandir=/share/man \ --no-system-libs \ --docdir=/share/doc/cmake-2.8.11.2
The meaning of the configure options:
--no-system-libs.
This switch forces the build system to build versions Zlib, Bzip2, cURL, Expat and libarchive, rather than use the installed version.
Continue with compiling the package:
make
Install the package:
make install
Reset standard environment:
source ~/.bashrc