Skip to content

Commit

Permalink
Add Matthias's configuration for example
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanBryan51 committed Mar 12, 2024
1 parent 3a56781 commit b57facb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,21 @@ if hostname -f | grep gadi.nci.org.au > /dev/null; then
# via CMake's `find_package` mechanism:
prepend_path CMAKE_PREFIX_PATH "${OPENMPI_BASE}/include/${compiler_lib_install_dir}"
fi

elif hostname -f | grep -E '(mc16|mcmini)' > /dev/null; then
: "${compiler:=gnu}"

case ${compiler} in
gnu)
export PKG_CONFIG_PATH=/usr/local/netcdf-fortran-4.6.1-gfortran/lib/pkgconfig:${PKG_CONFIG_PATH}
export PKG_CONFIG_PATH=${HOMEBREW_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}
cmake_args+=(-DCMAKE_Fortran_COMPILER=gfortran)
;;
?*)
echo -e "\nError: compiler ${compiler} is not supported.\n"
exit 1
;;
esac
fi

export CMAKE_BUILD_PARALLEL_LEVEL="${CMAKE_BUILD_PARALLEL_LEVEL:=$nproc_default}"
Expand Down

0 comments on commit b57facb

Please sign in to comment.