We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa8330 commit b0cc61fCopy full SHA for b0cc61f
src/cython_cmake/cmake/FindCython.cmake
@@ -18,6 +18,8 @@
18
# ``Cython::Cython``
19
# The Cython executable
20
#
21
+# A range of versions is supported on CMake 3.19+.
22
+#
23
# For more information on the Cython project, see https://cython.org/.
24
25
# *Cython is a language that makes writing C extensions for the Python language
@@ -84,9 +86,17 @@ if(CYTHON_EXECUTABLE)
84
86
endif()
85
87
88
include(FindPackageHandleStandardArgs)
89
+
90
+if(CMAKE_VERSION VERSION_LESS 3.19)
91
+ set(_handle_version_range)
92
+else()
93
+ set(_handle_version_range HANDLE_VERSION_RANGE)
94
+endif()
95
96
find_package_handle_standard_args(Cython
97
REQUIRED_VARS CYTHON_EXECUTABLE
98
VERSION_VAR ${CYTHON_VERSION}
99
+ ${_handle_version_range}
100
)
101
102
if(CYTHON_FOUND)
0 commit comments