Skip to content

Commit 7dac1a0

Browse files
committed
improvements to cmake and libzip installation
1 parent 88df394 commit 7dac1a0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/install-libzip

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@ pushd cmake
2020
#install cmake specific to host architecture.
2121
if [[ $HOSTTYPE == "powerpc64le" ]]
2222
then
23-
wget -O - https://cmake.org/files/v3.12/cmake-3.12.0.tar.gz | tar -xz --strip-components=1
23+
wget -O - https://cmake.org/files/v3.14/cmake-3.14.0.tar.gz | tar -xz --strip-components=1
2424
#compile cmake
2525
./configure > /dev/null 2>&1 && make > /dev/null 2>&1 && sudo make install > /dev/null 2>&1
2626
else
27-
wget -O - https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz | tar -xz --strip-components=1
27+
wget https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.sh
28+
sudo sh cmake-3.14.0-Linux-x86_64.sh --prefix=/usr --skip-license
2829
fi
2930
popd
3031

3132
# compile libzip
32-
git clone -b rel-1-5-1 https://github.com/nih-at/libzip.git
33+
git clone -b rel-1-5-2 https://github.com/nih-at/libzip.git
3334
pushd libzip
34-
../cmake/bin/cmake -DCMAKE_INSTALL_PREFIX=$LIBZIP_INSTALL_DIR .
35+
cmake -DCMAKE_INSTALL_PREFIX=$LIBZIP_INSTALL_DIR .
3536
make
3637
make install
3738
popd

0 commit comments

Comments
 (0)