-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2216: Add script for building external fmt
- Loading branch information
1 parent
a97d9fa
commit 5a9a577
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |