Merge pull request #897 from mibastian/patch-3

RHEL/CentOS 6/7 cmake prerequisites
This commit is contained in:
Chris Miles 2019-09-07 18:11:10 -05:00 committed by GitHub
commit b69fee5619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ elif [[ "$OS" == "red_hat" ]]; then
yum -y install \
open-vm-tools \
vim \
cmake \
cmake3 \
boost-* \
zlib-devel \
mariadb \
@ -178,6 +178,12 @@ elif [[ "$OS" == "red_hat" ]]; then
"Development Tools" \
"Basic Web Server" \
"Compatibility Libraries"
# Deal with the cmake 3 prerequisite on RHEL/CentOS 6/7 Note: Might break with RHEL/CentOS 8
alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake3 20 \
--slave /usr/local/bin/ctest ctest /usr/bin/ctest3 \
--slave /usr/local/bin/cpack cpack /usr/bin/cpack3 \
--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \
--family cmake
elif [[ "$OS" == "fedora_core" ]]; then
# Do Fedora stuff