@@ -136,9 +136,9 @@ function(add_cython_target _name)
136
136
set (_embed_main FALSE )
137
137
138
138
if ("C" IN_LIST languages )
139
- set (_output_syntax "C" )
139
+ set (target_language "C" )
140
140
elseif ("CXX" IN_LIST languages )
141
- set (_output_syntax "CXX" )
141
+ set (target_language "CXX" )
142
142
else ()
143
143
message (FATAL_ERROR "Either C or CXX must be enabled to use Cython" )
144
144
endif ()
@@ -148,11 +148,11 @@ function(add_cython_target _name)
148
148
endif ()
149
149
150
150
if (_args_C )
151
- set (_output_syntax "C" )
151
+ set (target_language "C" )
152
152
endif ()
153
153
154
154
if (_args_CXX )
155
- set (_output_syntax "CXX" )
155
+ set (target_language "CXX" )
156
156
endif ()
157
157
158
158
# Doesn't select an input syntax - Cython
@@ -174,7 +174,7 @@ function(add_cython_target _name)
174
174
175
175
set (cxx_arg "" )
176
176
set (extension "c" )
177
- if (_output_syntax STREQUAL "CXX" )
177
+ if (target_language STREQUAL "CXX" )
178
178
set (cxx_arg "--cplus" )
179
179
set (extension "cxx" )
180
180
endif ()
@@ -198,7 +198,7 @@ function(add_cython_target _name)
198
198
file (RELATIVE_PATH generated_file_relative
199
199
${CMAKE_BINARY_DIR} ${generated_file} )
200
200
201
- set (comment "Generating ${_output_syntax } source ${generated_file_relative} " )
201
+ set (comment "Generating ${target_language } source ${generated_file_relative} " )
202
202
set (cython_include_directories "" )
203
203
set (pxd_dependencies "" )
204
204
set (c_header_dependencies "" )
@@ -356,7 +356,7 @@ function(add_cython_target _name)
356
356
--output-file ${generated_file}
357
357
DEPENDS ${_source_file}
358
358
${pxd_dependencies}
359
- IMPLICIT_DEPENDS ${_output_syntax }
359
+ IMPLICIT_DEPENDS ${target_language }
360
360
${c_header_dependencies}
361
361
COMMENT ${comment} )
362
362
0 commit comments