Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

CMake, the cross-platform, open-source build system.

Octocat-spinner-32 Auxiliary cmake-mode.el: Add help for variables/properties/complete. Factorize. February 13, 2014
Octocat-spinner-32 Help Merge topic 'cxx11-features' April 15, 2014
Octocat-spinner-32 Licenses cmake-gui: Reference LGPLv2.1 when redistributing Qt November 21, 2013
Octocat-spinner-32 Modules Merge topic 'FindGTest-typed-test' April 17, 2014
Octocat-spinner-32 Source CMake Nightly Date Stamp April 18, 2014
Octocat-spinner-32 Templates create_test_sourcelist: Initialize variable at declaration March 31, 2014
Octocat-spinner-32 Tests CMP0052: Make the warning message more informative. April 17, 2014
Octocat-spinner-32 Utilities Merge topic 'update-libarchive' April 17, 2014
Octocat-spinner-32 .gitattributes Add CMAKE_GNUtoMS option to convert GNU .dll.a to MS .lib December 05, 2011
Octocat-spinner-32 .hooks-config.bash Add pre-commit|commit-msg|prepare-commit-msg hook placeholders October 24, 2011
Octocat-spinner-32 CMakeCPack.cmake Configure NSIS-packaged CMake version and install destination November 12, 2013
Octocat-spinner-32 Change version scheme to use only two components for feature levels February 19, 2014
Octocat-spinner-32 CMakeGraphVizOptions.cmake Convert CMake-language commands to lower case August 13, 2012
Octocat-spinner-32 CMakeLists.txt Update libarchive configuration within CMake April 03, 2014
Octocat-spinner-32 CMakeLogo.gif ENH: fancier logo November 26, 2007
Octocat-spinner-32 CONTRIBUTING.rst README: Credit Kitware and community of contributors February 03, 2014
Octocat-spinner-32 CTestConfig.cmake Remove compatibility CTest code. February 28, 2014
Octocat-spinner-32 Merge topic 'openbsd-warnings' April 15, 2014
Octocat-spinner-32 CompileFlags.cmake Merge topic 'matches-cleanup' April 15, 2014
Octocat-spinner-32 Copyright.txt Copyright.txt: Update year range to end in 2014 January 02, 2014
Octocat-spinner-32 DartConfig.cmake Merge in changes to CMake-2-8 RC 2 October 01, 2009
Octocat-spinner-32 ENH: remove superior dean i, no longer uses borland December 03, 2007
Octocat-spinner-32 README.rst README: Credit Kitware and community of contributors February 03, 2014
Octocat-spinner-32 bootstrap CompileFlags: Add -AA +hpxstd98 on HP-UX 11.11 with aCC April 04, 2014
Octocat-spinner-32 Replace string(REGEX REPLACE) with string(REPLACE) where possible April 14, 2014
Octocat-spinner-32 configure Merge in changes to CMake-2-8 RC 2 October 01, 2009
Octocat-spinner-32 doxygen.config Remove trailing whitespace from most CMake and C/C++ code August 13, 2012



CMake is a cross-platform, open-source build system generator. For full documentation visit the CMake Home Page and the CMake Documentation Page.

CMake is maintained by Kitware, Inc. and developed in collaboration with a productive community of contributors.


CMake is distributed under the OSI-approved BSD 3-clause License. See Copyright.txt for details.

Building CMake

Supported Platforms

MS Windows, Mac OS X, Linux, FreeBSD, Solaris, HP-UX, IRIX, BeOS, QNX

Other UNIX-like operating systems may work too out of the box, if not it should not be a major problem to port CMake to this platform. Subscribe and post to the CMake Users List to ask if others have had experience with the platform.

Building CMake from Scratch


You need to have a compiler and a make installed. Run the bootstrap script you find the in the source directory of CMake. You can use the --help option to see the supported options. You may use the --prefix=<install_prefix> option to specify a custom installation directory for CMake. You can run the bootstrap script from within the CMake source directory or any other build directory of your choice. Once this has finished successfully, run make and make install. In summary:

$ ./bootstrap && make && make install


You need to download and install a binary release of CMake in order to build CMake. You can get these releases from the CMake Download Page . Then proceed with the instructions below.

Building CMake with CMake

You can build CMake as any other project with a CMake-based build system: run the installed CMake on the sources of this CMake with your preferred options and generators. Then build it and install it. For instructions how to do this, see documentation on Running CMake.


See CONTRIBUTING.rst for instructions to contribute.

Something went wrong with that request. Please try again.