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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

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[@]}"