Fix Mac and Linux build script to fail on build break
This commit is contained in:
Родитель
46adc75e00
Коммит
2747e55b4c
7
build.sh
7
build.sh
|
@ -54,6 +54,10 @@ if [ -f /usr/bin/rpmbuild ]; then
|
|||
export CMAKE_PACKAGE_TYPE=rpm
|
||||
fi
|
||||
|
||||
|
||||
# Fail on error
|
||||
set -e
|
||||
|
||||
if [ "$2" == "release" ]; then
|
||||
# TODO: pass custom build flags?
|
||||
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_PACKAGE_TYPE=$CMAKE_PACKAGE_TYPE ..
|
||||
|
@ -67,6 +71,9 @@ fi
|
|||
#make
|
||||
cmake --build .
|
||||
|
||||
# No fail on error
|
||||
set +e
|
||||
|
||||
# Remove old package
|
||||
rm -f *.deb *.rpm
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче