forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install CMake 3.6.3 in base image for Android build
Summary: This is needed for pytorch#1740. Verified that `./build.sh py2-android-ubuntu16.04` builds an Android base image with CMake 3.6.3. Closes facebookarchive/caffe2#1747 Differential Revision: D6729823 Pulled By: pietern fbshipit-source-id: f7c888b4fba14ff6ea703cc269175b327b49f6b8
- Loading branch information
1 parent
1fd05df
commit 559380c
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
[ -n "$CMAKE_VERSION" ] | ||
|
||
# Turn 3.6.3 into v3.6 | ||
path=$(echo "${CMAKE_VERSION}" | sed -e 's/\([0-9].[0-9]\+\).*/v\1/') | ||
file="cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz" | ||
|
||
# Download and install specific CMake version in /usr/local | ||
pushd /tmp | ||
curl -Os "https://cmake.org/files/${path}/${file}" | ||
tar -C /usr/local --strip-components 1 --no-same-owner -zxf cmake-*.tar.gz | ||
rm -f cmake-*.tar.gz | ||
popd |
This file contains 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