Set Unicode definitions for third party libraries in CMake build

See https://github.com/wxWidgets/wxWidgets/pull/717

See #18077.
This commit is contained in:
Maarten
2018-02-04 18:51:22 +01:00
committed by VZ
parent a342582eb1
commit aaf58e2b49

View File

@@ -407,6 +407,14 @@ function(wx_set_builtin_target_properties target_name)
OUTPUT_NAME_DEBUG ${target_name}${lib_unicode}d
)
endif()
if(wxUSE_UNICODE)
if(WIN32)
target_compile_definitions(${target_name} PUBLIC UNICODE)
endif()
target_compile_definitions(${target_name} PUBLIC _UNICODE)
endif()
if(MSVC)
# we're not interested in deprecation warnings about the use of
# standard C functions in the 3rd party libraries (these warnings