Skip to content

Commit

Permalink
do_cmake.sh: set WITH_RADOSGW_AMQP_ENDPOINT using ARGS
Browse files Browse the repository at this point in the history
so we can extend ARGS in a more unified way

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Sep 28, 2019
1 parent e92cb7a commit 612376a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions do_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,24 @@ if [ -r /etc/os-release ]; then
;;
opensuse*|suse|sles)
PYBUILD="3"
WITH_RADOSGW_AMQP_ENDPOINT="OFF"
ARGS+=" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF"
;;
esac
elif [ "$(uname)" == FreeBSD ] ; then
PYBUILD="3"
WITH_RADOSGW_AMQP_ENDPOINT="OFF"
ARGS+=" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF"
else
echo Unknown release
exit 1
fi

if [[ "$PYBUILD" =~ ^3(\..*)?$ ]] ; then
ARGS="$ARGS -DWITH_PYTHON2=OFF -DWITH_PYTHON3=${PYBUILD} -DMGR_PYTHON_VERSION=${PYBUILD}"
ARGS+=" -DWITH_PYTHON2=OFF -DWITH_PYTHON3=${PYBUILD} -DMGR_PYTHON_VERSION=${PYBUILD}"
fi

if type ccache > /dev/null 2>&1 ; then
echo "enabling ccache"
ARGS="$ARGS -DWITH_CCACHE=ON"
fi
if [ -n "$WITH_RADOSGW_AMQP_ENDPOINT" ] ; then
ARGS="$ARGS -DWITH_RADOSGW_AMQP_ENDPOINT=$WITH_RADOSGW_AMQP_ENDPOINT"
ARGS+=" -DWITH_CCACHE=ON"
fi

mkdir $BUILD_DIR
Expand Down

0 comments on commit 612376a

Please sign in to comment.