Skip to content

Commit b3742cb

Browse files
henryiiijcfr
authored andcommitted
refactor: require UseCython (like UseSWIG)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent b0cc61f commit b3742cb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cython_cmake/cmake/FindCython.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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
#
@@ -109,5 +109,3 @@ if(CYTHON_FOUND)
109109
endif()
110110

111111
mark_as_advanced(CYTHON_EXECUTABLE)
112-
113-
include(UseCython)

src/cython_cmake/cmake/UseCython.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
# .. code-block:: cmake
3838
#
3939
# find_package(Cython)
40+
# include(UseCython)
4041
#
4142
# Cython_compile_pyx(_hello.pyx
4243
# OUTPUT_VARIABLE _hello_source_files

tests/packages/simple/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ find_package(
66
COMPONENTS Interpreter Development.Module
77
REQUIRED)
88
find_package(Cython MODULE REQUIRED VERSION 3.0)
9+
include(UseCython)
910

1011
cython_compile_pyx(simple.pyx LANGUAGE C OUTPUT_VARIABLE simple_c)
1112

0 commit comments

Comments
 (0)