Skip to content

Commit 1377edb

Browse files
jcfrvyasr
andcommitted
wip(UseCython): Rename ivar py_version_arg -> language_level_arg
Co-authored-by: Vyas Ramasubramani <[email protected]>
1 parent 87af4f2 commit 1377edb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

projects/core-cython-hello/cmake/UseCython.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)