Commit e1d3ca68 authored by Dominik Charousset's avatar Dominik Charousset

use more portable syntax in configure script

parent e04e53f8
......@@ -93,13 +93,16 @@ configure ()
append_cache_entry CMAKE_CXX_COMPILER FILEPATH $1
fi
if [[ "$builddir" = /* ]]; then
# absolute path given
absolute_builddir="$builddir"
else
# relative path given; convert to absolute path
absolute_builddir="$(pwd)/$builddir"
fi
case "$builddir" in
/*)
#absolute path given
absolute_builddir="$builddir"
;;
*)
# relative path given; convert to absolute path
absolute_builddir="$(pwd)/$builddir"
;;
esac
if [ -n "$2" ]; then
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