Skip to content

Commit ff6f082

Browse files
committed
further specifcy cmake
1 parent 5629996 commit ff6f082

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,15 @@ jobs:
7070
env:
7171
CIBW_SKIP: "pp* *-musllinux*"
7272
CIBW_BEFORE_BUILD: >
73+
python -c "
74+
import os;
75+
os.environ['GEOS_DIR'] = os.path.abspath('extern');
76+
os.environ['CPATH'] = os.path.abspath('extern/include');
77+
os.environ['LIBRARY_PATH'] = os.path.abspath('extern/lib');
78+
os.environ['LD_LIBRARY_PATH'] = os.path.abspath('extern/lib')
79+
" &&
7380
python -c "import utils; utils.GeosLibrary('${{ env.GEO_VERSION }}').build('extern', njobs=16)"
7481
CIBW_ENVIRONMENT: >
75-
GEOS_DIR=/{project}/extern
76-
CPATH=/{project}/extern/include
77-
LIBRARY_PATH=/{project}/extern/lib
78-
LD_LIBRARY_PATH=/{project}/extern/lib
7982
GEOS_LIBRARY=/{project}/extern/lib/libgeos.so
8083
GEOS_INCLUDE_DIR=/{project}/extern/include
8184
CMAKE_PREFIX_PATH=/{project}/extern

0 commit comments

Comments
 (0)