Commit e1d3ca68 authored by Dominik Charousset's avatar Dominik Charousset

use more portable syntax in configure script

parent e04e53f8
...@@ -93,13 +93,16 @@ configure () ...@@ -93,13 +93,16 @@ configure ()
append_cache_entry CMAKE_CXX_COMPILER FILEPATH $1 append_cache_entry CMAKE_CXX_COMPILER FILEPATH $1
fi fi
if [[ "$builddir" = /* ]]; then case "$builddir" in
# absolute path given /*)
absolute_builddir="$builddir" #absolute path given
else absolute_builddir="$builddir"
# relative path given; convert to absolute path ;;
absolute_builddir="$(pwd)/$builddir" *)
fi # relative path given; convert to absolute path
absolute_builddir="$(pwd)/$builddir"
;;
esac
if [ -n "$2" ]; then if [ -n "$2" ]; then
workdir="$absolute_builddir-$2" workdir="$absolute_builddir-$2"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment