1
0
Fork 0
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:
Henrik Hautakoski 2020-03-14 21:04:14 +01:00
parent 72a74fcb5a
commit 9a0bd26f83

View file

@ -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