From 37f79c05721acc19251f11f359a700685931ec3c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 20 Apr 2024 22:05:11 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- CMakeLists.txt | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1175a6e..2571dd2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 .) \ No newline at end of file +install(TARGETS dps DESTINATION .)