Last active
August 23, 2019 06:53
-
-
Save trxcllnt/339fd48c37cd1d5b1c4b81b759bb6aca to your computer and use it in GitHub Desktop.
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
bash << "EOF" | |
read -p "cmake version (default: 3.15.2): " V </dev/tty | |
CMAKE_VERSION=$([ -z "${V// }" ] && echo "3.15.2" || echo "$V"); | |
sudo apt install \ | |
curl zlib1g-dev libssl-dev libcurl4-openssl-dev \ | |
&& curl -o ./cmake-${CMAKE_VERSION}.tar.gz \ | |
-L https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz \ | |
&& tar -xvzf cmake-${CMAKE_VERSION}.tar.gz \ | |
&& cd cmake-${CMAKE_VERSION} \ | |
&& ./bootstrap --qt-gui --system-curl \ | |
&& sudo make install -j \ | |
&& cd .. && rm -rf ./cmake-${CMAKE_VERSION} ./cmake-${CMAKE_VERSION}.tar.gz | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment