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)
179
179
set (extension "cxx" )
180
180
endif ()
181
181
182
- set (py_version_arg "" )
182
+ set (language_level_arg "" )
183
183
if (_input_syntax STREQUAL "PY2" )
184
- set (py_version_arg "-2" )
184
+ set (language_level_arg "-2" )
185
185
elseif (_input_syntax STREQUAL "PY3" )
186
- set (py_version_arg "-3" )
186
+ set (language_level_arg "-3" )
187
187
endif ()
188
188
189
189
set (generated_file "${CMAKE_CURRENT_BINARY_DIR} /${_name} .${extension} " )
@@ -350,7 +350,7 @@ function(add_cython_target _name)
350
350
# Add the command to run the compiler.
351
351
add_custom_command (OUTPUT ${generated_file}
352
352
COMMAND ${CYTHON_EXECUTABLE}
353
- ARGS ${cxx_arg} ${include_directory_arg} ${py_version_arg }
353
+ ARGS ${cxx_arg} ${include_directory_arg} ${language_level_arg }
354
354
${embed_arg} ${annotate_arg} ${cython_debug_arg}
355
355
${line_directives_arg} ${CYTHON_FLAGS_LIST} ${pyx_location}
356
356
--output-file ${generated_file}
You can’t perform that action at this time.
0 commit comments