Skip to content

Instantly share code, notes, and snippets.

@brianc118
Created September 27, 2019 08:25
Show Gist options
  • Save brianc118/600fb9888fa6f9df9ff4a4faf480d068 to your computer and use it in GitHub Desktop.
Save brianc118/600fb9888fa6f9df9ff4a4faf480d068 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# USAGE: ./cmake_local_install INSTALL_DIR
#
# Note. INSTALL_DIR needs to be an absolute path
wget https://github.com/Kitware/CMake/releases/download/v3.15.3/cmake-3.15.3.tar.gz
tar -xvzf cmake-3.15.3.tar.gz
cd cmake-3.15.3
./configure.sh --prefix=$1
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment