download_and_compile.sh: allow setting SG_CMAKEARGS and FG_CMAKEARGS from the environment

This allows one to add custom CMake options for the SG and/or FG
build(s) without modifying download_and_compile.sh.
This commit is contained in:
Florent Rougon 2019-04-24 18:50:50 +02:00
parent 3344c21c71
commit 82f3c85343

View File

@ -384,8 +384,6 @@ REPO_DEFAULT_USERNAME=''
JOPTION=""
OOPTION=""
BUILD_TYPE="RelWithDebInfo"
SG_CMAKEARGS=""
FG_CMAKEARGS=""
declare -a UNMATCHED_OPTIONAL_PKG_ALTERNATIVES
@ -583,6 +581,8 @@ _log "DOWNLOAD=$DOWNLOAD"
_log "JOPTION=$JOPTION"
_log "OOPTION=$OOPTION"
_log "BUILD_TYPE=$BUILD_TYPE"
_log "SG_CMAKEARGS=$SG_CMAKEARGS"
_log "FG_CMAKEARGS=$FG_CMAKEARGS"
_log "DIRECTORY=$CBD"
_logSep