Skip to content

Commit

Permalink
[CONFIGURE] Make configure.sh print out an error when CMake fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nexos-dev authored Aug 1, 2021
1 parent a0235bf commit 14fbe80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@ echo Preparing reactos...
rm -f CMakeCache.txt host-tools/CMakeCache.txt

cmake -G "$CMAKE_GENERATOR" -DENABLE_CCACHE:BOOL=0 -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-gcc.cmake -DARCH:STRING=$ARCH $EXTRA_ARGS $ROS_CMAKEOPTS "$REACTOS_SOURCE_DIR"
if [ $? -ne 0 ]; then
echo "An error occured while configuring ReactOS"
exit 1
fi

echo Configure script complete! Enter directories and execute appropriate build commands \(ex: ninja, make, makex, etc...\).

0 comments on commit 14fbe80

Please sign in to comment.