CMake: Only keep unicode definitions on Windows

This commit is contained in:
Maarten Bent 2024-02-04 18:03:06 +01:00
parent f0d2d0e748
commit f0061b3c04
No known key found for this signature in database
GPG key ID: 58AAEE3F4A4FD070

View file

@ -571,9 +571,10 @@ function(wx_set_builtin_target_properties target_name)
endif()
if(WIN32)
target_compile_definitions(${target_name} PUBLIC UNICODE)
# not needed for wxWidgets anymore (it is always built with unicode)
# but keep it here so applications linking to wxWidgets will inherit it
target_compile_definitions(${target_name} PUBLIC UNICODE _UNICODE)
endif()
target_compile_definitions(${target_name} PUBLIC _UNICODE)
target_include_directories(${target_name} BEFORE PRIVATE ${wxSETUP_HEADER_PATH})