File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,9 @@ execute_process(
7777string (STRIP ${PYTHON_EXTENSION_SOABI_tmp} PYTHON_EXTENSION_SOABI_tmp)
7878
7979if (WITH_PY_LIMITED_API)
80- if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows" )
80+ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" )
81+ set (PYTHON_EXTENSION_SOABI_tmp "" )
82+ else ()
8183 set (PYTHON_EXTENSION_SOABI_tmp ".abi3" )
8284 endif ()
8385endif ()
@@ -152,8 +154,11 @@ macro(ADD_PYTHON_LIBRARY name)
152154 ENDIF ()
153155 ENDIF ()
154156 IF (WITH_PY_LIMITED_API)
155- target_compile_definitions (${name} PRIVATE
156- Py_LIMITED_API=${WITH_PY_LIMITED_API}
157- CYTHON_LIMITED_API=1)
157+ target_compile_definitions (
158+ ${name}
159+ PRIVATE
160+ Py_LIMITED_API=${WITH_PY_LIMITED_API}
161+ CYTHON_LIMITED_API=1
162+ )
158163 ENDIF ()
159164endmacro (ADD_PYTHON_LIBRARY)
You can’t perform that action at this time.
0 commit comments