From 4991ef608d8bf1b5944f9478c09e9cc5fd05dcbc Mon Sep 17 00:00:00 2001 From: 3kinox Date: Tue, 11 Nov 2014 14:49:14 +0100 Subject: [PATCH] add automatic archlinux build detection(wx path can not be found otherwise) --- build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.sh b/build.sh index da75e3f57c..98bdbdff8f 100755 --- a/build.sh +++ b/build.sh @@ -16,7 +16,13 @@ #set -e # This terminates the script in case of any error +arch64Build=$(uname -a | grep ARCH) +if [[ -e "arch64Build" ]]; 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 flags=(-DCMAKE_BUILD_PO=FALSE) +fi cleanBuild=0 useClang=0