build_jthread.sh
339 Bytes
#!/bin/bash
currentPath=$(pwd)
libPath=$(pwd)/../jthread-1.3.3
if [ -d "./jthread" ]; then
rm -rf jthread
fi
mkdir jthread
cd jthread
installPath=$(pwd)
cd ${libPath}
if [ -d "./build" ]; then
rm -rf build
fi
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=${installPath} -DCMAKE_USE_OPENSSL=OFF ..
make
make install
cd ..