Install a different jsoncpp version on cirleci to ensure compilation never clashes with the internal one

by progamatically installing jsoncpp to ensure the verison is alway 1.7.4
This commit is contained in:
alibabe
2018-05-21 03:04:54 +00:00
parent 0fdb226fd8
commit 54f83acee9
2 changed files with 19 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -e
TEMPDIR=$(mktemp -d)
(
cd $TEMPDIR
wget https://github.com/open-source-parsers/jsoncpp/archive/1.7.4.tar.gz
tar xvzf "1.7.4.tar.gz"
cd "jsoncpp-1.7.4"
mkdir -p build
cd build
cmake -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..
make
make install
)
rm -rf $TEMPDIR