From 644e9ca9116145a70c01b30d61703de0b6eae9ef Mon Sep 17 00:00:00 2001 From: Bryan Weber Date: Tue, 16 Jul 2024 15:38:04 -0400 Subject: [PATCH] Use CMake for Boost to avoid compiling b2 --- install_boost.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install_boost.sh b/install_boost.sh index 787e808..003d60a 100644 --- a/install_boost.sh +++ b/install_boost.sh @@ -5,11 +5,14 @@ pushd /tmp BOOST_DOWNLOAD_FILE="/cache/boost-cmake.tar.xz" curl -fsSL -o $BOOST_DOWNLOAD_FILE https://github.com/boostorg/boost/releases/download/boost-${BOOST_VERSION}/boost-${BOOST_VERSION}-cmake.tar.xz tar -xf $BOOST_DOWNLOAD_FILE -C /tmp -pushd boost-${BOOST_VERSION} +mkdir -p boost-${BOOST_VERSION}/build +pushd boost-${BOOST_VERSION}/build -./bootstrap.sh --prefix=${BOOST_DIR} -# We have to explicitly include cmakedir here so that cmake files are installed -./b2 variant=release toolset=gcc --with-headers --cmakedir=${BOOST_DIR}/lib/cmake install +cmake -G "Ninja" \ + -DCMAKE_BUILD_TYPE=release \ + -DBOOST_INCLUDE_LIBRARIES="algorithm;dll;stacktrace;core;math;numeric/ublas;serialization;multi_array" \ + .. +ninja install popd