From 488da2642a9d6321a5d6bd016885acfccb0b1638 Mon Sep 17 00:00:00 2001 From: Marius Greuel Date: Sat, 4 Feb 2023 17:54:18 +0100 Subject: [PATCH] build.sh: For compatibility with old CMake versions, use old syntax to generate build system --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index bcb7b6ae..03c69984 100755 --- a/build.sh +++ b/build.sh @@ -74,9 +74,11 @@ case "${ostype}" in ;; 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; } -cmake --build build_${ostype} ||\ +cmake --build . ||\ { echo "Build failed."; exit 1; } cat <