Commit 6f0521c0 authored by Ben Boeckel's avatar Ben Boeckel

python: support a different default unicode setting

parent 4e85b8bf
Pipeline #122033 passed with stage
......@@ -4,7 +4,11 @@ else ()
set(python_shared_args --disable-shared --enable-static)
endif ()
set(python_USE_UNICODE "UCS2" CACHE STRING "Enable Unicode support for python")
if (NOT _python_unicode_default)
set(_python_unicode_default "UCS2")
endif ()
set(python_USE_UNICODE "${_python_unicode_default}" CACHE STRING "Enable Unicode support for python")
set_property(CACHE python_USE_UNICODE PROPERTY STRINGS "OFF;UCS2;UCS4")
mark_as_advanced(python_USE_UNICODE)
......
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