CMake: Keep UNICODE defines
So these defines are exported and used by libraries importing wxWidgets. And also Visual Studio will show the actual character set that is being used.
This commit is contained in:
parent
db7f144c1b
commit
590e033344
1 changed files with 10 additions and 0 deletions
|
|
@ -324,6 +324,11 @@ function(wx_set_target_properties target_name)
|
|||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(${target_name} PUBLIC UNICODE)
|
||||
endif()
|
||||
target_compile_definitions(${target_name} PUBLIC _UNICODE)
|
||||
|
||||
file(RELATIVE_PATH wxSETUP_HEADER_REL ${wxOUTPUT_DIR} ${wxSETUP_HEADER_PATH})
|
||||
target_include_directories(${target_name}
|
||||
BEFORE
|
||||
|
|
@ -565,6 +570,11 @@ function(wx_set_builtin_target_properties target_name)
|
|||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(${target_name} PUBLIC UNICODE)
|
||||
endif()
|
||||
target_compile_definitions(${target_name} PUBLIC _UNICODE)
|
||||
|
||||
target_include_directories(${target_name} BEFORE PRIVATE ${wxSETUP_HEADER_PATH})
|
||||
|
||||
set_target_properties(${target_name} PROPERTIES FOLDER "Third Party Libraries")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue