From 3f69e6ca1a9c02bfc5a47cca1ac69745be2ca88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20G=C3=A9czi?= Date: Fri, 6 Oct 2023 00:00:04 +0000 Subject: [PATCH] [tools] Fix building of "desktop" target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferenc Géczi --- tools/unix/build_omim.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/unix/build_omim.sh b/tools/unix/build_omim.sh index e0be8d504f..1a2ed18bf6 100755 --- a/tools/unix/build_omim.sh +++ b/tools/unix/build_omim.sh @@ -52,13 +52,12 @@ while getopts ":cdrxtagjlpn:" opt; do esac done -if [ -z "$OPT_DESIGNER" -a -z "$OPT_STANDALONE" ]; then +OPT_TARGET=${@:$OPTIND} + +if [ "$OPT_TARGET" != "desktop" -a -z "$OPT_DESIGNER" -a -z "$OPT_STANDALONE" ]; then CMAKE_CONFIG="${CMAKE_CONFIG:-} -DSKIP_QT_GUI=ON" fi - -OPT_TARGET=${@:$OPTIND} - # By default build everything if [ -z "$OPT_DEBUG$OPT_RELEASE" ]; then OPT_DEBUG=1