File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ This provides helpers for using Cython. Use:
1919
2020``` cmake
2121find_package(Cython MODULE REQUIRED VERSION 3.0)
22+ include(UseCython)
2223```
2324
2425If you find Python beforehand, the search will take this into account. You can
Original file line number Diff line number Diff line change 1818# ``Cython::Cython``
1919# The Cython executable
2020#
21- # A range of versions is supported on CMake 3.19+.
21+ # A range of versions is supported on CMake 3.19+. See also UseCython.
2222#
2323# For more information on the Cython project, see https://cython.org/.
2424#
@@ -106,8 +106,6 @@ if(CYTHON_FOUND)
106106 IMPORTED_LOCATION "${CYTHON_EXECUTABLE} "
107107 )
108108 endif ()
109-
110- include (UseCython)
111109endif ()
112110
113111mark_as_advanced (CYTHON_EXECUTABLE)
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ find_package(
66 COMPONENTS Interpreter Development.Module
77 REQUIRED)
88find_package (Cython MODULE REQUIRED VERSION 3.0)
9+ include (UseCython)
910
1011cython_compile_pyx(simple.pyx LANGUAGE C OUTPUT_VARIABLE simple_c)
1112
You can’t perform that action at this time.
0 commit comments