fxsdk: do not build if CMake fails

This commit is contained in:
Lephenixnoir 2021-01-28 22:07:49 +01:00
parent 51e60fcf06
commit 8eed69b7a0
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ fxsdk_build_in() {
-DCMAKE_TOOLCHAIN_FILE="$PREFIX/lib/cmake/fxsdk/$toolchain.cmake" \
-DFXSDK_CMAKE_MODULE_PATH="$PREFIX/lib/cmake/fxsdk" \
"${cmake_extra_args[@]}"
if [[ $? != 0 ]]; then
return 1
fi
fi
if [[ -z "$configure" ]]; then
make --no-print-directory -C "build-$platform" "${make_extra_args[@]}"