README.rst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. CMake
  2. *****
  3. Introduction
  4. ============
  5. CMake is a cross-platform, open-source build system generator.
  6. For full documentation visit the `CMake Home Page`_ and the
  7. `CMake Documentation Page`_.
  8. .. _`CMake Home Page`: https://cmake.org
  9. .. _`CMake Documentation Page`: https://cmake.org/cmake/help/documentation.html
  10. CMake is maintained and supported by `Kitware`_ and developed in
  11. collaboration with a productive community of contributors.
  12. .. _`Kitware`: http://www.kitware.com/cmake
  13. License
  14. =======
  15. CMake is distributed under the OSI-approved BSD 3-clause License.
  16. See `Copyright.txt`_ for details.
  17. .. _`Copyright.txt`: Copyright.txt
  18. Building CMake
  19. ==============
  20. Supported Platforms
  21. -------------------
  22. * Microsoft Windows
  23. * Apple macOS
  24. * Linux
  25. * FreeBSD
  26. * OpenBSD
  27. * Solaris
  28. * AIX
  29. Other UNIX-like operating systems may work too out of the box, if not
  30. it should not be a major problem to port CMake to this platform.
  31. Subscribe and post to the `CMake Users List`_ to ask if others have
  32. had experience with the platform.
  33. .. _`CMake Users List`: https://cmake.org/mailman/listinfo/cmake
  34. Building CMake from Scratch
  35. ---------------------------
  36. UNIX/Mac OSX/MinGW/MSYS/Cygwin
  37. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  38. You need to have a C++ compiler (supporting C++11) and a ``make`` installed.
  39. Run the ``bootstrap`` script you find in the source directory of CMake.
  40. You can use the ``--help`` option to see the supported options.
  41. You may use the ``--prefix=<install_prefix>`` option to specify a custom
  42. installation directory for CMake. You can run the ``bootstrap`` script from
  43. within the CMake source directory or any other build directory of your
  44. choice. Once this has finished successfully, run ``make`` and
  45. ``make install``. In summary::
  46. $ ./bootstrap && make && make install
  47. Windows
  48. ^^^^^^^
  49. You need to download and install a binary release of CMake in order to build
  50. CMake. You can get these releases from the `CMake Download Page`_ . Then
  51. proceed with the instructions below.
  52. .. _`CMake Download Page`: https://cmake.org/cmake/resources/software.html
  53. Building CMake with CMake
  54. -------------------------
  55. You can build CMake as any other project with a CMake-based build system:
  56. run the installed CMake on the sources of this CMake with your preferred
  57. options and generators. Then build it and install it.
  58. For instructions how to do this, see documentation on `Running CMake`_.
  59. .. _`Running CMake`: https://cmake.org/cmake/help/runningcmake.html
  60. Reporting Bugs
  61. ==============
  62. If you have found a bug:
  63. 1. If you have a patch, please read the `CONTRIBUTING.rst`_ document.
  64. 2. Otherwise, please join the `CMake Users List`_ and ask about
  65. the expected and observed behaviors to determine if it is really
  66. a bug.
  67. 3. Finally, if the issue is not resolved by the above steps, open
  68. an entry in the `CMake Issue Tracker`_.
  69. .. _`CMake Issue Tracker`: https://gitlab.kitware.com/cmake/cmake/issues
  70. Contributing
  71. ============
  72. See `CONTRIBUTING.rst`_ for instructions to contribute.
  73. .. _`CONTRIBUTING.rst`: CONTRIBUTING.rst