From c04395ef98c3973caf41a67de8263018d82c6c5e Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Mon, 12 Aug 2019 14:40:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=BB=D1=8C=D0=B7=D1=8F=20=D1=8D?= =?UTF-8?q?=D0=BA=D1=81=D0=BF=D0=BE=D1=80=D1=82=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=20=D0=BC=D0=B0=D1=81=D1=81=D0=B8=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake.sh b/cmake.sh index b400ee5..853b32c 100755 --- a/cmake.sh +++ b/cmake.sh @@ -82,7 +82,7 @@ if [ "x${GENERATOR}" = "x" ]; then fi CMAKE_ARGS="" -[ ${#@} -gt 0 ] && CMAKE_ARGS=("${@}") +[ ${#@} -gt 0 ] && CMAKE_ARGS=${@} [ ! -f "${SOURCE_DIR}/CMakeLists.txt" ] && { echo "Source directory does not contain CMakeLists.txt"; exit 4; } @@ -129,7 +129,7 @@ generate_configuration() { mkdir -p "${GEN_DIR}" pushd "${GEN_DIR}" 2>/dev/null - cmake -G "${GENERATOR}" -DCMAKE_INSTALL_PREFIX="${OUTPUT_DIR}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" "${CMAKE_ARGS[@]}" "${SOURCE_DIR}" + cmake -G "${GENERATOR}" -DCMAKE_INSTALL_PREFIX="${OUTPUT_DIR}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" ${CMAKE_ARGS} "${SOURCE_DIR}" if [ "x$GENERATOR" == "xNinja" ]; then # Generate fake Makefile, so make can run ninja build cat > Makefile <