From 8eed69b7a09d11ad4dcfb9b8e9dd33ddac78ba77 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Thu, 28 Jan 2021 22:07:49 +0100 Subject: [PATCH] fxsdk: do not build if CMake fails --- fxsdk/fxsdk.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fxsdk/fxsdk.sh b/fxsdk/fxsdk.sh index 1b4dde3..b46fe29 100755 --- a/fxsdk/fxsdk.sh +++ b/fxsdk/fxsdk.sh @@ -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[@]}"