Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/cython_cmake/cmake/FindCython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# ``Cython::Cython``
# The Cython executable
#
# A range of versions is supported on CMake 3.19+.
# A range of versions is supported on CMake 3.19+. See also UseCython.
#
# For more information on the Cython project, see https://cython.org/.
#
Expand Down Expand Up @@ -109,5 +109,3 @@ if(CYTHON_FOUND)
endif()

mark_as_advanced(CYTHON_EXECUTABLE)

include(UseCython)
1 change: 1 addition & 0 deletions src/cython_cmake/cmake/UseCython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
# .. code-block:: cmake
#
# find_package(Cython)
# include(UseCython)
#
# Cython_compile_pyx(_hello.pyx
# OUTPUT_VARIABLE _hello_source_files
Expand Down
1 change: 1 addition & 0 deletions tests/packages/simple/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ find_package(
COMPONENTS Interpreter Development.Module
REQUIRED)
find_package(Cython MODULE REQUIRED VERSION 3.0)
include(UseCython)

cython_compile_pyx(simple.pyx LANGUAGE C OUTPUT_VARIABLE simple_c)

Expand Down