allow additional cake params to be passed via env variables (#5371)
This allows for non-standard paths and the likes (helps a lot on OSX).
This commit is contained in:
committed by
Bertrand Songis
parent
d4a00dec3b
commit
2631ad00bd
@@ -38,7 +38,7 @@ if [ "$(uname)" = "Darwin" ]; then
|
||||
else
|
||||
SCRIPT=$(readlink -f "$0")
|
||||
fi
|
||||
#export CMAKE_PREFIX_PATH=/opt/qt${QT_BASE}
|
||||
|
||||
if [[ ! -z ${GCC_ARM} ]] ; then
|
||||
export PATH=${GCC_ARM}:$PATH
|
||||
fi
|
||||
@@ -48,6 +48,10 @@ fi
|
||||
: ${COMMON_OPTIONS:="-DCMAKE_BUILD_TYPE=Debug -DTRACE_SIMPGMSPACE=NO -DVERBOSE_CMAKELISTS=YES -DCMAKE_RULE_MESSAGES=OFF -Wno-dev"}
|
||||
if (( $WERROR )); then COMMON_OPTIONS+=" -DWARNINGS_AS_ERRORS=YES"; fi
|
||||
|
||||
: ${EXTRA_OPTIONS:="$EXTRA_OPTIONS"}
|
||||
|
||||
COMMON_OPTIONS+=${EXTRA_OPTIONS}
|
||||
|
||||
: ${TEST_OPTIONS:="--gtest_shuffle --gtest_repeat=5 --gtest_break_on_failure"}
|
||||
|
||||
: ${FIRMARE_TARGET:="firmware-size"}
|
||||
|
||||
Reference in New Issue
Block a user