Commit aa1c5abd authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot

Merge topic 'change-python-default-unicode'

6f0521c0 python: support a different default unicode setting
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Bane Sullivan's avatarBane Sullivan <banesullivan@gmail.com>
Merge-request: !253
parents 4e85b8bf 6f0521c0
......@@ -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