Skip to content

Commit

Permalink
#2216: Add script for building external fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Dec 18, 2023
1 parent a97d9fa commit 5a9a577
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ci/deps/fmt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

set -exo pipefail

if test $# -lt 1
then
echo "usage: ./$0 <fmt-version> <make_flags>"
exit 1
fi

fmt_version=$1

base_dir=$(pwd)

git clone https://github.com/fmtlib/fmt.git
cd fmt
git checkout ${fmt_version}
mkdir build && cd build
cmake .. -D FMT_TEST=OFF
make ${make_flags}
make install
cd ${base_dir}
rm -rf fmt

0 comments on commit 5a9a577

Please sign in to comment.