From a67919ba385a02b4463a7970805596619448bd0f Mon Sep 17 00:00:00 2001 From: Lehman Garrison Date: Thu, 12 Sep 2024 14:01:44 -0400 Subject: [PATCH] build: fix python stable abi builds --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b423ac..58d72b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ execute_process( ${CMAKE_CURRENT_BINARY_DIR}/../compile_commands.json ) -find_package(Python 3.8 COMPONENTS Interpreter Development.Module REQUIRED) +find_package(Python 3.8 COMPONENTS Interpreter Development.Module REQUIRED ${SKBUILD_SABI_COMPONENT}) find_package(nanobind CONFIG REQUIRED) option(NIFTY_LS_OPENMP "Enable OpenMP support in the compiled extensions" ON) @@ -19,7 +19,7 @@ if(NIFTY_LS_OPENMP) find_package(OpenMP REQUIRED) endif() -nanobind_add_module(cpu_helpers src/nifty_ls/cpu_helpers.cpp NOMINSIZE) +nanobind_add_module(cpu_helpers src/nifty_ls/cpu_helpers.cpp NOMINSIZE STABLE_ABI) target_compile_options(cpu_helpers PRIVATE -Wall -Wextra -Werror -std=c++17