summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/build.sh b/build.sh
index f1f5b54..f71b167 100755
--- a/build.sh
+++ b/build.sh
@@ -49,10 +49,10 @@ ARGS="$@"
if [ ! -x "$CMAKE" ]
then
- CMAKE=`which cmake3`
+ CMAKE=$(which cmake3)
if [ ! -x "$CMAKE" ]
then
- CMAKE=`which cmake`
+ CMAKE=$(which cmake)
if [ ! -x "$CMAKE" ]
then
echo "ERROR: Unable to locate cmake."
@@ -63,10 +63,10 @@ fi
if [ ! -x "$CPACK" ]
then
- CPACK=`which cpack3`
+ CPACK=$(which cpack3)
if [ ! -x "$CPACK" ]
then
- CPACK=`which cpack`
+ CPACK=$(which cpack)
if [ ! -x "$CPACK" ]
then
echo "ERROR: Unable to locate cpack."
@@ -75,12 +75,12 @@ then
fi
fi
-NINJA=`which ninja-build`
+NINJA=$(which ninja-build)
if [ -x "$NINJA" ]
then
GENERATOR=-GNinja
else
- NINJA=`which ninja`
+ NINJA=$(which ninja)
if [ -x "$NINJA" ]
then
GENERATOR=-GNinja
OpenPOWER on IntegriCloud