Skip to content

Commit

Permalink
build: fix python stable abi builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarrison committed Sep 12, 2024
1 parent 005f139 commit a67919b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit a67919b

Please sign in to comment.