BuildSystem: Always download cmake instead of using host's

If cmake was installed from snap, build system would cause an error
because some libfakeroot GLIBC requirement.
This commit is contained in:
2024-05-20 16:19:29 +03:00
parent 08415b0e8f
commit af8fa4014f
5 changed files with 108 additions and 99 deletions

View File

@@ -25,8 +25,8 @@ if [ -z $BANAN_ROOT_DIR ]; then
exit 1
fi
if [ -z $CMAKE_COMMAND ]; then
echo "You must set the CMAKE_COMMAND environment variable" >&2
if [ -z $BANAN_CMAKE ]; then
echo "You must set the BANAN_CMAKE environment variable" >&2
exit 1
fi
@@ -77,7 +77,7 @@ install_banan_legacy() {
if [ ! -d $INSTALLER_BUILD_DIR ]; then
mkdir -p $INSTALLER_BUILD_DIR
cd $INSTALLER_BUILD_DIR
$CMAKE_COMMAND -G Ninja ../..
$BANAN_CMAKE -G Ninja ../..
fi
cd $INSTALLER_BUILD_DIR