BuildSystem: Download correct cmake if it is not available

This commit is contained in:
2023-12-28 19:13:27 +02:00
parent af80bad87a
commit 5d83ab2289
4 changed files with 66 additions and 5 deletions

View File

@@ -15,6 +15,11 @@ fi
if [[ -z $BANAN_ROOT_DIR ]]; then
echo "You must set the BANAN_ROOT_DIR environment variable" >&2
exit 1
fi
if [[ -z $CMAKE_COMMAND ]]; then
echo "You must set the CMAKE_COMMAND environment variable" >&2
exit 1
fi
ROOT_PARTITION_INDEX=2
@@ -32,7 +37,7 @@ fi
if ! [ -d $INSTALLER_BUILD_DIR ]; then
mkdir -p $INSTALLER_BUILD_DIR
cd $INSTALLER_BUILD_DIR
cmake ..
$CMAKE_COMMAND ..
fi
cd $INSTALLER_BUILD_DIR