From f8d79f8c2b96fa2001a6caefe4eda9fc57845fb4 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 13 Mar 2019 20:15:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B1=D0=BE=D1=80=20=D1=82=D0=B8?= =?UTF-8?q?=D0=BF=D0=B0=20=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qtcreator-debug.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qtcreator-debug.sh b/qtcreator-debug.sh index 84f1747..4bb2cfb 100755 --- a/qtcreator-debug.sh +++ b/qtcreator-debug.sh @@ -1,7 +1,11 @@ #!/bin/bash -GENERATOR=make +[ -x "$(command -v make)" ] && GENERATOR="Unix Makefiles" [ -x "$(command -v ninja)" ] && GENERATOR=Ninja +if [ "x${GENERATOR}" = "x" ]; then + echo "Build command is not found" + exit 1 +fi PROJECT=$(grep -i "^Project" "$(dirname -- "$(dirname -- "$(pwd)")")/CMakeLists.txt" | awk -F'[()]' '{print $2}') "$(dirname $0)/cmake.sh" -g "${GENERATOR}" -f -t Debug