Commit 3040af46 authored by Florian Weik's avatar Florian Weik

cmake: Actually use CYTHON_FLAGS, extend warnings are errors to cython.

parent 0aad12ec
Pipeline #2335 failed with stages
in 33 minutes and 21 seconds
......@@ -197,6 +197,10 @@ if (WITH_PYTHON)
else()
set(CYTHON_FLAGS "-3" CACHE STRING "Flags used by the Cython compiler during all build types.")
endif()
if(WARNINGS_ARE_ERRORS)
set(CYTHON_FLAGS "--warning-errors;${CYTHON_FLAGS}")
endif()
endif(WITH_PYTHON)
......
......@@ -81,7 +81,7 @@ foreach(cython_file ${cython_SRC})
else()
list(APPEND cython_generated_SRC "${basename}.cpp")
add_custom_command(OUTPUT ${outputpath}
COMMAND ${CYTHON_EXECUTABLE} --cplus
COMMAND ${CYTHON_EXECUTABLE} ${CYTHON_FLAGS} --cplus
--directive embedsignature=True
--directive binding=True
-I ${CMAKE_CURRENT_SOURCE_DIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment