From 7b78b14b17a61ddd8845bb1cc4f0502cc1ab75e8 Mon Sep 17 00:00:00 2001 From: jwhite Date: Tue, 19 Dec 2023 21:07:37 -0600 Subject: [PATCH] added arm script --- scripts/build_pestpp_mac_arm.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/build_pestpp_mac_arm.sh diff --git a/scripts/build_pestpp_mac_arm.sh b/scripts/build_pestpp_mac_arm.sh new file mode 100755 index 00000000..29e274c5 --- /dev/null +++ b/scripts/build_pestpp_mac_arm.sh @@ -0,0 +1,17 @@ +#!/bin/sh +realpath() { + [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" +} +set -e + +full_path=$(realpath $0) +script_path=$(dirname $full_path) +cd "$script_path"/.. + +rm -rfd build +mkdir build +cd build +cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DFORCE_STATIC=OFF .. +make -j +cpack -G TGZ +cp *.tar.gz ../