From 314af1236739afc3c25e6325f2edcb1781c5f3c6 Mon Sep 17 00:00:00 2001 From: Darth Vader Date: Fri, 20 Dec 2024 19:25:01 +0000 Subject: [PATCH] Squashed 'src/phast/PhreeqcRM/' changes from 8a3a3813..50def481 50def481 Set Python_SOABI to SKBUILD_SOABI (#186) git-subtree-dir: src/phast/PhreeqcRM git-subtree-split: 50def4813a75b5aa3522a27e908dd0d9f07ee916 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index edb7d59f..42f3056d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,6 +105,11 @@ if(PHREEQCRM_BUILD_PYTHON) # ie -DPython_ROOT_DIR=C:/Python38-x64 endif() +if(DEFINED SKBUILD) + # see https://scikit-build-core.readthedocs.io/en/latest/cmakelists.html + set(Python_SOABI ${SKBUILD_SOABI}) +endif() + option(PHREEQCRM_NO_UTF8_ENCODING "Build without utf-8 encoding" OFF) set(PhreeqcRM_SOURCES