1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-16 03:44:56 +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
mkdir build 2> /dev/null
pushd build > /dev/null
function usage() {
echo "Usage: ${0##*/} [ -h|--help ] [ -t|--type Debug|Release|RelWithDebInfo|MinSizeRel ] [ --disable-threads ] [ --force-ansi ]"
exit 1
@ -42,9 +39,7 @@ while true; do
shift
done
cmake $ARGS ..
cmake -B build $ARGS .
if [ ${ONLY_CONFIG} -eq 0 ]; then
make -B
cmake --build build --clean-first --target
fi
popd > /dev/null