How to install cmake?
CMake is a cross-platform tool for building, testing and packaging software.
If you’ve been writing C or C++ (or maybe Fortran) you probably had to, at some point, use cmake to package your software.
If you’re a Linux user, you’d normally just need to run:
|
|
to install it. But sometimes, the version that you can install from the official repository is not the one you need.
Therefore, you will probably need to proceed with a manual installation. But before you do that, check the current version to see whether is the one you expect or not:
|
|
Remove the current install:
|
|
Download the latest stable release, e.g v3.19.2 (do not download the binary/dmg distribution, but the Linux/Unix source):
|
|
Unzip the archive:
|
|
Build and install it:
|
|
Verify the installation:
|
|
If you see something like:
|
|
you’re good to go.
For other platforms, check the official install guide.
If you find this post helpful, please consider sponsoring.
Sponsor