mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-17 03:50:03 +02:00
build.sh: need to pass --config flag to cmake build (for multiconfig generators like Visual Studio/xcode)
This commit is contained in:
parent
0cb00ae734
commit
54f0fc206f
1 changed files with 3 additions and 1 deletions
4
build.sh
4
build.sh
|
|
@ -13,6 +13,7 @@ eval set -- "$options"
|
|||
|
||||
ONLY_CONFIG=0
|
||||
ARGS=""
|
||||
BUILD_ARGS="--clean-first"
|
||||
while true; do
|
||||
|
||||
case $1 in
|
||||
|
|
@ -23,6 +24,7 @@ while true; do
|
|||
usage
|
||||
}
|
||||
ARGS="${ARGS} -DCMAKE_BUILD_TYPE=${1}"
|
||||
BUILD_ARGS="${BUILD_ARGS} --config ${1}"
|
||||
;;
|
||||
--pkg-type)
|
||||
shift
|
||||
|
|
@ -61,5 +63,5 @@ rm build/CMakeCache.txt 2> /dev/null
|
|||
|
||||
cmake -B build $ARGS .
|
||||
if [ ${ONLY_CONFIG} -eq 0 ]; then
|
||||
cmake --build build --clean-first --target ${TARGET}
|
||||
cmake --build build ${BUILD_ARGS} --target ${TARGET}
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue