Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid escaping spaces #265

Merged
merged 1 commit into from Nov 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions skbuild/resources/cmake/UseCython.cmake
Expand Up @@ -26,7 +26,7 @@
#
# The Cython include search path is amended with any entries found in the
# ``INCLUDE_DIRECTORIES`` property of the directory containing the
# ``<CythonInput>`` file. Use ``iunclude_directories`` to add to the Cython
# ``<CythonInput>`` file. Use ``include_directories`` to add to the Cython
# include search path.
#
# Options:
Expand Down Expand Up @@ -101,6 +101,7 @@ set(CYTHON_ANNOTATE OFF
set(CYTHON_FLAGS "" CACHE STRING
"Extra flags to the cython compiler.")
mark_as_advanced(CYTHON_ANNOTATE CYTHON_FLAGS)
string(REGEX REPLACE " " ";" CYTHON_FLAGS_LIST "${CYTHON_FLAGS}")

find_package(PythonLibs REQUIRED)

Expand Down Expand Up @@ -363,7 +364,7 @@ function(add_cython_target _name)
ARGS ${cxx_arg} ${include_directory_arg} ${py_version_arg}
${embed_arg} ${annotate_arg} ${no_docstrings_arg}
${cython_debug_arg} ${embed_pos_arg}
${line_directives_arg} ${CYTHON_FLAGS} ${pyx_location}
${line_directives_arg} ${CYTHON_FLAGS_LIST} ${pyx_location}
--output-file ${generated_file}
DEPENDS ${_source_file}
${pxd_dependencies}
Expand Down