Skip to content

Commit 5919d52

Browse files
henryiiijcfr
andcommitted
feat: Support requiring specific version of Cython
Co-authored-by: Jean-Christophe Fillion-Robin <[email protected]>
1 parent dddd823 commit 5919d52

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cython_cmake/cmake/FindCython.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ if(CYTHON_EXECUTABLE)
7979
endif()
8080

8181
include(FindPackageHandleStandardArgs)
82-
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Cython REQUIRED_VARS CYTHON_EXECUTABLE)
82+
find_package_handle_standard_args(Cython
83+
REQUIRED_VARS CYTHON_EXECUTABLE
84+
VERSION_VAR ${CYTHON_VERSION}
85+
)
8386

8487
mark_as_advanced(CYTHON_EXECUTABLE)
8588

0 commit comments

Comments
 (0)