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:
19
19
20
20
``` cmake
21
21
find_package(Cython MODULE REQUIRED VERSION 3.0)
22
+ include(UseCython)
22
23
```
23
24
24
25
If you find Python beforehand, the search will take this into account. You can
Original file line number Diff line number Diff line change 18
18
# ``Cython::Cython``
19
19
# The Cython executable
20
20
#
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.
22
22
#
23
23
# For more information on the Cython project, see https://cython.org/.
24
24
#
@@ -106,8 +106,6 @@ if(CYTHON_FOUND)
106
106
IMPORTED_LOCATION "${CYTHON_EXECUTABLE} "
107
107
)
108
108
endif ()
109
-
110
- include (UseCython )
111
109
endif ()
112
110
113
111
mark_as_advanced (CYTHON_EXECUTABLE )
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ find_package(
6
6
COMPONENTS Interpreter Development.Module
7
7
REQUIRED )
8
8
find_package (Cython MODULE REQUIRED VERSION 3.0 )
9
+ include (UseCython )
9
10
10
11
cython_compile_pyx (simple.pyx LANGUAGE C OUTPUT_VARIABLE simple_c )
11
12
You can’t perform that action at this time.
0 commit comments