test: fix build-linux-64.sh

This commit is contained in:
Eric Wasylishen 2018-01-15 20:29:21 -07:00
parent af66ccf0f1
commit ab0a9d15ce
1 changed files with 6 additions and 4 deletions

View File

@ -1,14 +1,16 @@
#!/bin/bash
if [ -d build ]; then
echo "build already exists, remove it first"
BUILD_DIR=build
if [ -d "$BUILD_DIR" ]; then
echo "$BUILD_DIR already exists, remove it first"
exit 1
fi
cmake --version
mkdir build
cd build
mkdir "$BUILD_DIR"
cd "$BUILD_DIR"
wget https://github.com/embree/embree/releases/download/v2.15.0/embree-2.15.0.x86_64.linux.tar.gz -O embree.tgz
tar xf embree.tgz
cmake .. -DCMAKE_BUILD_TYPE=Release -Dembree_DIR="$(pwd)/embree-2.15.0.x86_64.linux"