diff --git a/ci/deps/fmt.sh b/ci/deps/fmt.sh new file mode 100644 index 0000000000..36f46d5a5a --- /dev/null +++ b/ci/deps/fmt.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -exo pipefail + +if test $# -lt 1 +then + echo "usage: ./$0 " + 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