From 0b1cfbe53b65804f9404d590bedad4eb1f44c7d9 Mon Sep 17 00:00:00 2001 From: bgklug Date: Mon, 6 May 2019 17:42:25 -0800 Subject: [PATCH] Move default cmake versions by system to install page --- chapters/intro/dodonot.md | 18 ------------------ chapters/intro/installing.md | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/chapters/intro/dodonot.md b/chapters/intro/dodonot.md index 7b862b0..eef0a72 100644 --- a/chapters/intro/dodonot.md +++ b/chapters/intro/dodonot.md @@ -1,23 +1,5 @@ # Do's and Don'ts -## CMake Version Choice - -You'll need to pick a minimum required version of CMake. This will affect the CMake policies, and you should only use the features available in that version. Here are some common build environments and the CMake version you'll find on them. Feel free to install CMake yourself, it's 1-2 lines and there's nothing "special" about the built in version. It's also very backward compatible. - -| Distribution | CMake version | Notes | -|---------------|---------------|-------| -| [RHEL/CentOS 7](https://rpms.remirepo.net/rpmphp/zoom.php?rpm=cmake) | 2.8.11 | Don't use the default on this system. Grab a new copy or use the EPEL repo. | -| [EPEL for RHEL/CentOS](https://rpms.remirepo.net/rpmphp/zoom.php?rpm=cmake3) | 3.13.4 | Called `cmake3` | -| Ubuntu 14.04 LTS | 2.8.12 | Don't use the default on this system. | -| Ubuntu 16.04 LTS | 3.5.1 | | -| Ubuntu 18.04 LTS | 3.10.2 | An LTS with a pretty decent minimum version! | -| Ubuntu 18.10 | 3.12.1| | -| [Python PyPI](https://pypi.org/project/cmake/) | 3.13.3 | Just `pip install cmake` on many systems. Add `--user` for local installs. | -| [Homebrew on macOS](https://formulae.brew.sh/formula/cmake) | latest | On macOS with Homebrew, this is only a few minutes behind cmake.org. | -| Chocolaty on Windows | latest | Also up to date. The normal cmake.org installers are common on Windows, as well. | -| TravisCI Trusty | 3.9 | The December 2017 update added a recent version of clang and CMake! Finally! | -| TravisCI Xenial | 3.12.4 | Mid November 2018 this image became ready for widescale use. | - ## CMake Antipatterns The next two lists are heavily based on the excellent gist [Effective Modern CMake]. That list is much longer and more detailed, feel free to read it as well. diff --git a/chapters/intro/installing.md b/chapters/intro/installing.md index 3d1f4d3..7e7315a 100644 --- a/chapters/intro/installing.md +++ b/chapters/intro/installing.md @@ -36,6 +36,24 @@ If you are on a system without wget, replace `wget -qO-` with `curl -s`. You can also build CMake on any system, it's pretty easy, but binaries are faster. +## CMake Default Versions + +Here are some common build environments and the CMake version you'll find on them. Feel free to install CMake yourself, it's 1-2 lines and there's nothing "special" about the built in version. It's also very backward compatible. + +| Distribution | CMake version | Notes | +|---------------|---------------|-------| +| [RHEL/CentOS 7](https://rpms.remirepo.net/rpmphp/zoom.php?rpm=cmake) | 2.8.11 | Don't use the default on this system. Grab a new copy or use the EPEL repo. | +| [EPEL for RHEL/CentOS](https://rpms.remirepo.net/rpmphp/zoom.php?rpm=cmake3) | 3.13.4 | Called `cmake3` | +| Ubuntu 14.04 LTS | 2.8.12 | Don't use the default on this system. | +| Ubuntu 16.04 LTS | 3.5.1 | | +| Ubuntu 18.04 LTS | 3.10.2 | An LTS with a pretty decent minimum version! | +| Ubuntu 18.10 | 3.12.1| | +| [Python PyPI](https://pypi.org/project/cmake/) | 3.13.3 | Just `pip install cmake` on many systems. Add `--user` for local installs. | +| [Homebrew on macOS](https://formulae.brew.sh/formula/cmake) | latest | On macOS with Homebrew, this is only a few minutes behind cmake.org. | +| Chocolaty on Windows | latest | Also up to date. The normal cmake.org installers are common on Windows, as well. | +| TravisCI Trusty | 3.9 | The December 2017 update added a recent version of clang and CMake! Finally! | +| TravisCI Xenial | 3.12.4 | Mid November 2018 this image became ready for widescale use. | + ## Pip This is also provided as an official package, maintained by the authors of CMake at KitWare. It's a rather new method, and might fail on some systems (Alpine isn't supported last I checked, but that has CMake 3.8), but works really well when it works (like on Travis CI). If you have pip (Python's package installer), you can do: