Merge pull request #9754 from Icinga/cmake3

GHA: use a CMake version which can set(CMAKE_CXX_STANDARD 17) where possible
This commit is contained in:
Julian Brost 2023-05-08 18:52:42 +02:00 committed by GitHub
commit e9fa037983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@ CMAKE_OPTS=''
case "$DISTRO" in
amazonlinux:*)
amazon-linux-extras install -y epel
yum install -y bison ccache cmake gcc-c++ flex ninja-build \
yum install -y bison ccache cmake3 gcc-c++ flex ninja-build \
{libedit,mariadb,ncurses,openssl,postgresql,systemd}-devel
yum install -y bzip2 tar wget
@ -22,6 +22,7 @@ case "$DISTRO" in
./b2
)
ln -vs /usr/bin/cmake3 /usr/local/bin/cmake
ln -vs /usr/bin/ninja-build /usr/local/bin/ninja
CMAKE_OPTS='-DBOOST_INCLUDEDIR=/boost_1_69_0 -DBOOST_LIBRARYDIR=/boost_1_69_0/stage/lib'
export LD_LIBRARY_PATH=/boost_1_69_0/stage/lib
@ -29,9 +30,10 @@ case "$DISTRO" in
centos:*)
yum install -y centos-release-scl epel-release
yum install -y bison ccache cmake devtoolset-11-gcc-c++ flex ninja-build \
yum install -y bison ccache cmake3 devtoolset-11-gcc-c++ flex ninja-build \
{boost169,libedit,mariadb,ncurses,openssl,postgresql,systemd}-devel
ln -vs /usr/bin/cmake3 /usr/local/bin/cmake
ln -vs /usr/bin/ccache /usr/lib64/ccache/g++
CMAKE_OPTS='-DBOOST_INCLUDEDIR=/usr/include/boost169 -DBOOST_LIBRARYDIR=/usr/lib64/boost169'
;;