Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 20, 2024
1 parent 55e958a commit 37f79c0
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,17 @@ find_package(
COMPONENTS Interpreter Development.Module
REQUIRED)

find_package(
Cython
REQUIRED
)
find_package(Cython REQUIRED)

Cython_compile_pyx(
${CMAKE_CURRENT_BINARY_DIR}/dps.pyx
OUTPUT_VAR _dps_source_files
)
cython_compile_pyx(${CMAKE_CURRENT_BINARY_DIR}/dps.pyx OUTPUT_VAR
_dps_source_files)

python_add_library(dps MODULE ${_dps_source_files} ${CMAKE_CURRENT_BINARY_DIR}/c_stack.cpp WITH_SOABI)
target_compile_definitions(dps PRIVATE CYTHON_LIMITED_API=1 Py_LIMITED_API=0x03070000)
python_add_library(dps MODULE ${_dps_source_files}
${CMAKE_CURRENT_BINARY_DIR}/c_stack.cpp WITH_SOABI)
target_compile_definitions(dps PRIVATE CYTHON_LIMITED_API=1
Py_LIMITED_API=0x03070000)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_definitions(dps PRIVATE CYTHON_TRACE=1 CYTHON_TRACE_NOGIL=1)
target_compile_definitions(dps PRIVATE CYTHON_TRACE=1 CYTHON_TRACE_NOGIL=1)
endif()

install(TARGETS dps DESTINATION .)
install(TARGETS dps DESTINATION .)

0 comments on commit 37f79c0

Please sign in to comment.