Trying to install different CMake versions in macOS

This commit is contained in:
vector-of-bool 2018-02-17 19:49:13 -07:00
Родитель 2e0e958597
Коммит 58010b03aa
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -26,6 +26,15 @@ before_install:
curl https://cmake.org/files/v${CMAKE_MINOR}/cmake-${CMAKE_VER}-Linux-x86_64.sh -o /tmp/cmake.sh
sudo sh /tmp/cmake.sh --exclude-subdir --prefix=/usr/local
sleep 3
else
curl https://cmake.org/files/v${CMAKE_MINOR}/cmake-${CMAKE_VER}-Darwin-x86_64.tar.gz -o /tmp/cmake.tgz
pushd /tmp
tar xf /tmp/cmake.tgz
if test -e /Applications/CMake.app; then
sudo rm -rf /Applications/CMake.app
fi
sudo cp -r cmake-${CMAKE_VER}-Darwin-x86_64/CMake.app /Applications/
sudo /Applications/CMake.app/Contents/bin/cmake-gui --install
fi
set +eu