From 30240b4cbf6c347968862311dcb58906455f668b Mon Sep 17 00:00:00 2001 From: 3kinox Date: Tue, 11 Nov 2014 15:39:42 +0100 Subject: [PATCH] More robust detection of arch64(or any distrib using same path for wxwidget) --- build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 2ba6907835..5673e8d037 100755 --- a/build.sh +++ b/build.sh @@ -16,8 +16,7 @@ #set -e # This terminates the script in case of any error -arch64Build=$(uname -a | grep ARCH | grep x86_64) -if [[ -e "arch64Build" ]]; then +if [[ (-f /usr/bin/wx-config32-2.8 && -f /usr/bin/wxrc32-2.8) ]]; then #add flags for archlinux flags=(-DCMAKE_BUILD_PO=FALSE -DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config32-2.8' -DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc32-2.8') else