Skip to content

Instantly share code, notes, and snippets.

@michael-martinez
Last active June 18, 2021 08:34
Show Gist options
  • Save michael-martinez/ec8ed660602bf9d188e9626bc82f45df to your computer and use it in GitHub Desktop.
Save michael-martinez/ec8ed660602bf9d188e9626bc82f45df to your computer and use it in GitHub Desktop.
#!/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