build.sh: use $flags instead of "$flags"

Otherwise bash add tick around it and cmake doesn't understand what happen
This commit is contained in:
Gregory Hainaut 2016-08-20 19:05:23 +02:00
parent 2ae133e993
commit fc996951cb
1 changed files with 5 additions and 5 deletions

View File

@ -148,20 +148,20 @@ cd "$build"
if [ "$useClang" -eq 1 ]; then
if [ "$useCross" -eq 0 ]; then
CC=clang CXX=clang++ cmake "$flags" "$root" 2>&1 | tee -a "$log"
CC=clang CXX=clang++ cmake $flags "$root" 2>&1 | tee -a "$log"
else
CC="clang -m32" CXX="clang++ -m32" cmake "$flags" "$root" 2>&1 | tee -a "$log"
CC="clang -m32" CXX="clang++ -m32" cmake $flags "$root" 2>&1 | tee -a "$log"
fi
else
if [ "$useIcc" -eq 1 ]; then
if [ "$useCross" -eq 0 ]; then
CC="icc" CXX="icpc" cmake "$flags" "$root" 2>&1 | tee -a "$log"
CC="icc" CXX="icpc" cmake $flags "$root" 2>&1 | tee -a "$log"
else
CC="icc -m32" CXX="icpc -m32" cmake "$flags" "$root" 2>&1 | tee -a "$log"
CC="icc -m32" CXX="icpc -m32" cmake $flags "$root" 2>&1 | tee -a "$log"
fi
else
# Default compiler AKA GCC
cmake "$flags" "$root" 2>&1 | tee -a "$log"
cmake $flags "$root" 2>&1 | tee -a "$log"
fi
fi