Skip to content

Commit 8d87f6e

Browse files
refactor: better name and value for SABI (#342)
Easier to use in a CMakeLists. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9e2c6bd commit 8d87f6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scikit_build_core/builder/builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ def configure(
167167
cache_config["SKBUILD_SOABI"] = ext_suffix.rsplit(".", 1)[0].lstrip(".")
168168

169169
# Allow CMakeLists to detect this is supposed to be a limited ABI build
170-
cache_config["SKBUILD_LIMITED_ABI"] = limited_abi
170+
cache_config["SKBUILD_SABI_COMPONENT"] = (
171+
"Development.SABIModule" if limited_abi else ""
172+
)
171173

172174
if cache_entries:
173175
cache_config.update(cache_entries)

0 commit comments

Comments
 (0)