Skip to content

Commit 50def48

Browse files
authored
Set Python_SOABI to SKBUILD_SOABI (#186)
1 parent 8a3a381 commit 50def48

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ if(PHREEQCRM_BUILD_PYTHON)
105105
# ie -DPython_ROOT_DIR=C:/Python38-x64
106106
endif()
107107

108+
if(DEFINED SKBUILD)
109+
# see https://scikit-build-core.readthedocs.io/en/latest/cmakelists.html
110+
set(Python_SOABI ${SKBUILD_SOABI})
111+
endif()
112+
108113
option(PHREEQCRM_NO_UTF8_ENCODING "Build without utf-8 encoding" OFF)
109114

110115
set(PhreeqcRM_SOURCES

0 commit comments

Comments
 (0)