1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-07-03 11:53:41 +02:00

build.sh: need to pass --config flag to cmake build (for multiconfig generators like Visual Studio/xcode)

This commit is contained in:
Henrik Hautakoski 2020-04-24 18:39:01 +02:00
parent 0cb00ae734
commit 54f0fc206f

View file

@ -13,6 +13,7 @@ eval set -- "$options"
ONLY_CONFIG=0 ONLY_CONFIG=0
ARGS="" ARGS=""
BUILD_ARGS="--clean-first"
while true; do while true; do
case $1 in case $1 in
@ -23,6 +24,7 @@ while true; do
usage usage
} }
ARGS="${ARGS} -DCMAKE_BUILD_TYPE=${1}" ARGS="${ARGS} -DCMAKE_BUILD_TYPE=${1}"
BUILD_ARGS="${BUILD_ARGS} --config ${1}"
;; ;;
--pkg-type) --pkg-type)
shift shift
@ -61,5 +63,5 @@ rm build/CMakeCache.txt 2> /dev/null
cmake -B build $ARGS . cmake -B build $ARGS .
if [ ${ONLY_CONFIG} -eq 0 ]; then if [ ${ONLY_CONFIG} -eq 0 ]; then
cmake --build build --clean-first --target ${TARGET} cmake --build build ${BUILD_ARGS} --target ${TARGET}
fi fi