CMake: Only keep unicode definitions on Windows
This commit is contained in:
parent
f0d2d0e748
commit
f0061b3c04
1 changed files with 3 additions and 2 deletions
|
|
@ -571,9 +571,10 @@ function(wx_set_builtin_target_properties target_name)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
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()
|
endif()
|
||||||
target_compile_definitions(${target_name} PUBLIC _UNICODE)
|
|
||||||
|
|
||||||
target_include_directories(${target_name} BEFORE PRIVATE ${wxSETUP_HEADER_PATH})
|
target_include_directories(${target_name} BEFORE PRIVATE ${wxSETUP_HEADER_PATH})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue