Skip to content

Commit 1c4e96f

Browse files
committed
wip(UseCython): Cleanup parsing of add_cython_target arguments
1 parent 43eab2b commit 1c4e96f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/cython_cmake/cmake/UseCython.cmake

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,16 @@ set(CYTHON_C_EXTENSION "c")
108108
get_property(languages GLOBAL PROPERTY ENABLED_LANGUAGES)
109109

110110
function(add_cython_target _name)
111-
set(options EMBED_MAIN C CXX PY2 PY3)
112-
set(options1 OUTPUT_VAR)
113-
cmake_parse_arguments(_args "${options}" "${options1}" "" ${ARGN})
111+
set(_options EMBED_MAIN C CXX PY2 PY3)
112+
set(_one_value OUTPUT_VAR)
113+
set(_multi_value )
114+
115+
cmake_parse_arguments(_args
116+
"${_options}"
117+
"${_one_value}"
118+
"${_multi_value}"
119+
${ARGN}
120+
)
114121

115122
list(GET _args_UNPARSED_ARGUMENTS 0 _arg0)
116123

0 commit comments

Comments
 (0)