Last active
June 18, 2021 08:34
-
-
Save michael-martinez/ec8ed660602bf9d188e9626bc82f45df to your computer and use it in GitHub Desktop.
Installs CMake last version - Source: https://gist.github.com/1duo/38af1abd68a2c7fe5087532ab968574e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wget https://cmake.org/files/v3.20/cmake-3.20.4.tar.gz | |
tar zxvf cmake-3.* | |
cd cmake-3.* | |
./bootstrap --prefix=/usr/local -- -DCMAKE_USE_OPENSSL=OFF | |
make -j $( ([[ $OSTYPE == 'darwin'* ]] && sysctl -n hw.ncpu ) || ( cat /proc/cpuinfo |grep processor | wc -l ) ) | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment