Skip to content

Commit 80ac01c

Browse files
committed
#2216: Add script for building external fmt
1 parent 963ad18 commit 80ac01c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

ci/deps/fmt.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
set -exo pipefail
4+
5+
if test $# -lt 1
6+
then
7+
echo "usage: ./$0 <fmt-version> <make_flags>"
8+
exit 1
9+
fi
10+
11+
fmt_version=$1
12+
13+
base_dir=$(pwd)
14+
15+
git clone https://github.com/fmtlib/fmt.git
16+
cd fmt
17+
git checkout ${fmt_version}
18+
mkdir build && cd build
19+
cmake .. -D FMT_TEST=OFF
20+
make ${make_flags}
21+
make install
22+
cd ${base_dir}
23+
rm -rf fmt

0 commit comments

Comments
 (0)