mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-02 11:43:40 +02:00
build.sh: Should not assume that cmake generates a Makefile. use cmake only commands to configure/build.
This commit is contained in:
parent
72a74fcb5a
commit
9a0bd26f83
1 changed files with 2 additions and 7 deletions
9
build.sh
9
build.sh
|
|
@ -1,8 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
mkdir build 2> /dev/null
|
|
||||||
pushd build > /dev/null
|
|
||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
echo "Usage: ${0##*/} [ -h|--help ] [ -t|--type Debug|Release|RelWithDebInfo|MinSizeRel ] [ --disable-threads ] [ --force-ansi ]"
|
echo "Usage: ${0##*/} [ -h|--help ] [ -t|--type Debug|Release|RelWithDebInfo|MinSizeRel ] [ --disable-threads ] [ --force-ansi ]"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -42,9 +39,7 @@ while true; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
cmake $ARGS ..
|
cmake -B build $ARGS .
|
||||||
if [ ${ONLY_CONFIG} -eq 0 ]; then
|
if [ ${ONLY_CONFIG} -eq 0 ]; then
|
||||||
make -B
|
cmake --build build --clean-first --target
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue