Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Explicitly define the HOMEBREW_PREFIX directory and the path to gfort…
Browse files Browse the repository at this point in the history
…ran for the MacOS runner on Github Actions
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Sep 7, 2023
1 parent a6582a3 commit 1ae6431
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ ROOT_DIR="$(pwd)"
ARCH="$(uname -m)"
MACOSX_DEPLOYMENT_TARGET="$(sw_vers -productVersion)"
PREFIX="${ROOT_DIR}"
HOMEBREW_PREFIX="$(brew --prefix)"
LD_LIBRARY_PATH="/usr/local/lib:${PREFIX}/lib:${HOMEBREW_PREFIX}/lib"
LDFLAGS="-Wl,-rpath,${ROOT_DIR}/lib -Wl,-rpath,${PREFIX}/lib -Wl,-rpath,/usr/local/lib -Wl,-no_compact_unwind -L${PREFIX}/lib"
CPATH="/usr/local/include:${PREFIX}/include:${HOMEBREW_PREFIX}/include:${ROOT_DIR}/include"
Expand All @@ -81,7 +82,7 @@ NETCDF_FORTRAN_HOME="${PREFIX}"
NETCDF_INCLUDE="${PREFIX}"
NCDIR="${PREFIX}"
NFDIR="${PREFIX}"
FC="${HOMEBREW_PREFIX}/bin/gfortran-12"
FC="$(command -v gfortran-12)"
CC="/usr/bin/clang"
CXX="/usr/bin/clang++"
CPP="/usr/bin/cpp"
Expand Down

0 comments on commit 1ae6431

Please sign in to comment.