.. _spkg_cmake:

cmake: A cross-platform build system generator
==============================================

Description
-----------

The "cmake" executable is the CMake command-line interface. It may be
used to configure projects in scripts. Project configuration settings
may be specified on the command line with the -D option. The -i option
will cause cmake to interactively prompt for such settings.

CMake is a cross-platform build system generator. Projects specify their
build process with platform-independent CMake listfiles included in each
directory of a source tree with the name CMakeLists.txt. Users build a
project by using CMake to generate a build system for a native tool on
their platform.

License
-------

CMake is distributed under the OSI-approved BSD 3-clause License.


Upstream Contact
----------------

-  https://cmake.org/

-  cmake-developers@cmake.org

Type
----

standard


Dependencies
------------

- :ref:`spkg_curl`
- :ref:`spkg_zlib`
- :ref:`spkg_bzip2`
- :ref:`spkg_liblzma`

Version Information
-------------------

package-version.txt::

    3.21.0


Equivalent System Packages
--------------------------

alpine:
install the following packages: cmake

arch:

.. CODE-BLOCK:: bash

    $ sudo pacman -S  cmake


conda:

.. CODE-BLOCK:: bash

    $ conda install  cmake


cygwin:

.. CODE-BLOCK:: bash

    $ apt-cyg install cmake


Debian/Ubuntu:

.. CODE-BLOCK:: bash

    $ sudo apt-get install  cmake


Fedora/Redhat/CentOS:

.. CODE-BLOCK:: bash

    $ sudo yum install  cmake


freebsd:

.. CODE-BLOCK:: bash

    $ sudo pkg install devel/cmake


gentoo:

.. CODE-BLOCK:: bash

    $ sudo emerge dev-util/cmake


homebrew:

.. CODE-BLOCK:: bash

    $ brew install cmake


macports:
install the following packages: cmake

nix:

.. CODE-BLOCK:: bash

    $ nix-env --install cmake


opensuse:

.. CODE-BLOCK:: bash

    $ sudo zypper install cmake


slackware:

.. CODE-BLOCK:: bash

    $ sudo slackpkg install cmake


void:

.. CODE-BLOCK:: bash

    $ sudo xbps-install  cmake


See https://repology.org/project/cmake/versions


If the system package is installed, ./configure will check whether it can be used.

