File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
projects/core-cython-hello/cmake Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -179,11 +179,11 @@ function(add_cython_target _name)
179179 set (extension "cxx" )
180180 endif ()
181181
182- set (py_version_arg "" )
182+ set (language_level_arg "" )
183183 if (_input_syntax STREQUAL "PY2" )
184- set (py_version_arg "-2" )
184+ set (language_level_arg "-2" )
185185 elseif (_input_syntax STREQUAL "PY3" )
186- set (py_version_arg "-3" )
186+ set (language_level_arg "-3" )
187187 endif ()
188188
189189 set (generated_file "${CMAKE_CURRENT_BINARY_DIR} /${_name} .${extension} " )
@@ -350,7 +350,7 @@ function(add_cython_target _name)
350350 # Add the command to run the compiler.
351351 add_custom_command (OUTPUT ${generated_file}
352352 COMMAND ${CYTHON_EXECUTABLE}
353- ARGS ${cxx_arg} ${include_directory_arg} ${py_version_arg }
353+ ARGS ${cxx_arg} ${include_directory_arg} ${language_level_arg }
354354 ${embed_arg} ${annotate_arg} ${cython_debug_arg}
355355 ${line_directives_arg} ${CYTHON_FLAGS_LIST} ${pyx_location}
356356 --output -file ${generated_file}
You can’t perform that action at this time.
0 commit comments