Skip to content

Commit

Permalink
Point to local lib and include dirs, add OpenMP_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Jan 1, 2025
1 parent 3d6cf1d commit 9a736c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,11 @@ jobs:
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
export CPPFLAGS="$CPPFLAGS -Xpreprocessor -fopenmp"
export CFLAGS="$CFLAGS -I$PREFIX/include"
export CXXFLAGS="$CXXFLAGS -I$PREFIX/include"
export LDFLAGS="$LDFLAGS -L$PREFIX/lib -lomp"
export CFLAGS="$CFLAGS -I$PREFIX/include -I$HOME/.local/include"
export CXXFLAGS="$CXXFLAGS -I$PREFIX/include -I$HOME/.local/include"
export LDFLAGS="$LDFLAGS -L$PREFIX/lib -L$HOME/.local/lib -lomp"
# Add OpenMP root to the environment as an additional safeguard
export OpenMP_ROOT="$HOME/.local"
python scripts/install_KLU_Sundials.py
CIBW_BEFORE_BUILD: python -m pip install cmake casadi setuptools delocate
Expand Down

0 comments on commit 9a736c4

Please sign in to comment.