install_cmake.sh 300 Bytes
Newer Older
1 2
OS=`uname`
version=3.11.4-${OS}-x86_64
3 4 5 6 7 8

#Download if not present...
if [ ! -r cmake-${version} ]
then
    #Get the file with the code
    curl -LO "https://cmake.org/files/v3.11/cmake-${version}.tar.gz"
9
    tar xzf cmake-${version}.tar.gz
10 11 12 13
fi

#add to path
export PATH=$PWD/cmake-${version}/bin:$PATH