Skip to content

Commit

Permalink
build.sh: use $flags instead of "$flags"
Browse files Browse the repository at this point in the history
Otherwise bash add tick around it and cmake doesn't understand what happen
  • Loading branch information
gregory38 committed Aug 20, 2016
1 parent 2ae133e commit fc99695
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.sh
Expand Up @@ -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

Expand Down

0 comments on commit fc99695

Please sign in to comment.