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