1
0
Fork 0

some docker containers don't know the which command

This commit is contained in:
Wilfried Goesgens 2016-11-28 15:19:52 +01:00
parent 2757fd91ae
commit 47bf34f76c
1 changed files with 5 additions and 1 deletions

View File

@ -466,8 +466,12 @@ if [ -z "${MSVC}" ]; then
# on all other system cmake tends to be sluggish on finding strip.
# workaround by presetting it:
if test -z "${STRIP}"; then
export STRIP=`which strip`
STRIP=/usr/bin/strip
if [ ! -f ${STRIP} ] ; then
STRIP=`which strip`
fi
CONFIGURE_OPTIONS="${CONFIGURE_OPTIONS} -DCMAKE_STRIP=${STRIP}"
export STRIP
fi
fi