build.sh: For compatibility with old CMake versions, use old syntax to generate build system

This commit is contained in:
Marius Greuel 2023-02-04 17:54:18 +01:00
parent 5ec72e240b
commit 488da2642a
1 changed files with 4 additions and 2 deletions

View File

@ -74,9 +74,11 @@ case "${ostype}" in
;; ;;
esac esac
cmake ${build_flags} ${extra_enable} -D CMAKE_BUILD_TYPE=${build_type} -B build_${ostype} ||\ mkdir -p build_${ostype}
cd build_${ostype}
cmake ${build_flags} ${extra_enable} -D CMAKE_BUILD_TYPE=${build_type} .. ||\
{ echo "CMake failed."; exit 1; } { echo "CMake failed."; exit 1; }
cmake --build build_${ostype} ||\ cmake --build . ||\
{ echo "Build failed."; exit 1; } { echo "Build failed."; exit 1; }
cat <<EOF cat <<EOF