You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
659 B
29 lines
659 B
2 years ago
|
#! /usr/bin/env bash
|
||
|
|
||
|
### The following assumes you are building in a subdirectory of ACCESS Root
|
||
|
if [ "X$ACCESS" == "X" ] ; then
|
||
|
ACCESS=$(cd ../../..; pwd)
|
||
|
echo "ACCESS set to ${ACCESS}"
|
||
|
fi
|
||
|
INSTALL_PATH=${INSTALL_PATH:-${ACCESS}}
|
||
|
|
||
|
SHARED="${SHARED:-YES}"
|
||
|
|
||
|
. ${ACCESS}/TPL/compiler.sh
|
||
|
|
||
|
mkdir build
|
||
|
cd build
|
||
|
cmake -DCMAKE_C_COMPILER:FILEPATH=${CC} \
|
||
|
-DBUILD_SHARED_LIBS:BOOL=${SHARED} \
|
||
|
-DCMAKE_INSTALL_PREFIX=${INSTALL_PATH} \
|
||
|
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
|
||
|
|
||
|
cd ..
|
||
|
|
||
|
echo ""
|
||
|
echo " MPI: ${MPI}"
|
||
|
echo " COMPILER: ${CC}"
|
||
|
echo " ACCESS: ${ACCESS}"
|
||
|
echo "INSTALL_PATH: ${INSTALL_PATH}"
|
||
|
echo ""
|